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

Min/Max Pane size

2 Answers 54 Views
Docking
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 25 Oct 2011, 07:41 PM
Hi,

I realise this has come up a few times, but I still can't this to work.  I need to set a MinWidth and MaxWidth (same with Height) on a RadPane so that when it's floating you can't make it bigger than the figures specified.

Now I realise many threads talk about using the ToolWindow, but I just cannot get this to work.  Surely I should be able to set the Pane/Group or even the Spliter properties but again, I've tried this and they don't work.

Can someone please advise as I'm getting frustrated.

2 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 26 Oct 2011, 01:07 PM
Hello David,

In order to manipulate the size of the floating pane, you need to get the ToolWindow in which the pane is. You can do this in the PaneStateChange event of the Docking control, for example:

private void radDocking_PaneStateChange(objectsender, Telerik.Windows.RadRoutedEventArgs e) 
 
     foreach(RadPane pane inradDocking.Panes) 
     
         if(pane != null&& pane.IsFloating) 
         
             ToolWindow toolWindow = pane.GetParentToolWindow(); 
             toolWindow.MinWidth = 100; 
             toolWindow.MaxHeight = 500; 
                 
         
     
 }

Hope this helps.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
David
Top achievements
Rank 1
answered on 02 Nov 2011, 11:51 AM
Thank you, I first thought this didnt work but I realise I made a small mistake.  This works perfectly now.
Tags
Docking
Asked by
David
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
David
Top achievements
Rank 1
Share this question
or