Min/Max Pane size

3 posts, 0 answers
  1. David
    David avatar
    7 posts
    Member since:
    Oct 2012

    Posted 25 Oct 2011 Link to this post


    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. Konstantina
    Konstantina avatar
    2332 posts

    Posted 26 Oct 2011 Link to this post

    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,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. David
    David avatar
    7 posts
    Member since:
    Oct 2012

    Posted 02 Nov 2011 Link to this post

    Thank you, I first thought this didnt work but I realise I made a small mistake.  This works perfectly now.
Back to Top