RadDocking + PRISM + floating views

2 posts, 1 answers
  1. Alex Galie
    Alex Galie avatar
    22 posts
    Member since:
    Dec 2009

    Posted 11 Apr 2011 Link to this post

    I need some help with RadDocking and PRISM regions when it comes to making panes floating. I've read here that when a pane is set to float, it is undocked and hosted in a floating ToolWindow control. I'm guessing here that it is introduced in a new RadPaneGroup because when a pane is closed I'm doing some cleaning up in my code, but if I close it when floating it can't find the region specific attached properties and raises an exception.

    Is there an event I didn't find that I can use when a pane is docked/undocked ? I need to gain access to that ToolWindow and make him think it's in the right region (technical explanation ™).

    Or is this scenario handled somehow else ? (having floating windows with views registered to specific RadPaneGroup regions)

  2. Answer
    George avatar
    1332 posts

    Posted 15 Apr 2011 Link to this post

    Hi Alex,

    Your approach is correct. In order to get the ToolWindow, I would suggest you handling RadDocking.PaneStateChangedEvent where the RadRoutedEventArg.OriginalSource keeps a RadPane instance. You could check wheather this pane is floating and if it is so, you could get the ToolWindow using the RadPane.ParentOfType<ToolWindow>() method.

    I hope this helps.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top