Event for when any layout changed have occurred

2 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 17 Aug 2011 Link to this post

    I am trying determine if I need to save the layout for my Docking control due to a layout change by the user.  I have tried a handful of events to make this happen but none are working the way I think they should. 

    RadDocking - LayoutUpdated event - fired whether the user makes a change to the layout or not
    RadDocking - LayoutChangeStarted event - NOT fired if I simply move a pane around, but is fired if I change a SplitContainer
    RadDocking - LayoutChangeEnded event - NOT fired if I simply move a pane around, but is fired if I change a SplitContainer

    Is there an event that tells me if any changes were made to the layout whether they be panes being moved around OR SplitContainers being changed?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Aug 2011 Link to this post

    Hi Brian,

     The LayoutUpdated method comes from the framework and is fired whenever Silverlight detects that the layout was changed which is much more frequently than the Docking control's layout is updated. We don't recommend you to use this event.
    The LayoutChangeStarted and LayoutChangeEnded events are fired when the layout of the Docking control is changing which doesn't actually happen when you are dragging already floating pane. The ToolWindow control also has these events so you could use them to handle all the situations.

    You could also use the PaneStateChanged event of the Docking control in combination with the some of the events of the ToolWindow - LocationChanged, SizeChanged, LayoutChangeStarted, LayoutChangeEnded.

    Hope this information is helpful.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
Back to Top