This is a migrated thread and some comments may be shown as answers.

Disable Corner Resizer on Minimize

3 Answers 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 14 Oct 2008, 06:09 PM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Borisov
Telerik team
answered on 15 Oct 2008, 07:58 AM
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.
0
Dan
Top achievements
Rank 1
answered on 15 Oct 2008, 03:47 PM
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:

0
Dan
Top achievements
Rank 1
answered on 15 Oct 2008, 03:52 PM

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;  
            }  
        }   
    }  
}  
 
Tags
Window
Asked by
Dan
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Dan
Top achievements
Rank 1
Share this question
or