Disable Corner Resizer on Minimize

4 posts, 1 answers
  1. Dan
    Dan avatar
    9 posts
    Member since:
    Oct 2008

    Posted 14 Oct 2008 Link to this post

    It would be beneficial if there was an option to have the window not have the re-sizer corner gadget if the window is in a minimized state. 

    Resizing from corner gadget in that state sometimes has some bizarre size effects. I'd guess in most cases, the end user expects minimization to act like it does in an MDI child window in Winforms anyway.
  2. Answer
    Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 15 Oct 2008 Link to this post

    Hello Dan,

    Yes, I agree that the resizing functionality shouldn't be available whenever the RadWindow is minimized. We are still working and improving this control so that for the Q3 release you can expect this behavior to be the default one. Your feedback is of great importance to us and we are really thankful to receive such comments so that we can significantly enhance our controls.

    Greetings,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dan
    Dan avatar
    9 posts
    Member since:
    Oct 2008

    Posted 15 Oct 2008 Link to this post

    Thanks for your reply Hristo.

    For the benefit of the other end-users, I've gotten around this quirk a little by inheriting the control and over-riding the resizing.  When minimized, I've added code to make any resizing act like the "return to normal" button has been pressed.  It's not ideal behavior, but should be acceptable for most people until you get your fix in place.

    Next post has the code:

  4. Dan
    Dan avatar
    9 posts
    Member since:
    Oct 2008

    Posted 15 Oct 2008 Link to this post


    using System.Windows;  
    using Telerik.Windows.Controls;   
     
    namespace MyOrg.MySilverlightClassLibrary {  
        public class MyWindow : RadWindow{  
            public MyWindow():base() {  
                base.SizeChanged += OnSizeChanged_Event;  
            }   
     
            private bool theWasResizedToMinimum = false;  
     
            private void OnSizeChanged_Event(object sender, SizeChangedEventArgs e) {  
                if (WindowState == WindowState.Minimized) {  
                if (!theWasResizedToMinimum)  
                    theWasResizedToMinimum = true;  
                else {  
                    theWasResizedToMinimum = false;  
                    WindowState = WindowState.Normal;  
                }  
            }   
        }  
    }  
     
Back to Top