Pane that hss IsPinned equals to False not removed From Region !!!

3 posts, 0 answers
  1. chk
    chk avatar
    2 posts
    Member since:
    Jan 2009

    Posted 01 Jan 2015 Link to this post

    We use prism with RadDocking
    In the Shell view we have this region :

    <telerik:RadSplitContainer InitialPosition="DockedRight" telerik:ProportionalStackPanel.RelativeSize="200, 10">
    <telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static inf:RegionNames.RightSidebarRegion}"/>

    When we inject this view  that has IsPinned="False"

    <Telerik:RadPane …............….. IsPinned="False">
          <TextBlock Text="some text"/>

    We notice that when we navigate to view that have not pane,
    the pas injected in the precedent view not removed

    IRegion sidebarRegion =  RegionManager.Regions[RegionNames.RightSidebarRegion];

    Can you give me a solution for this behavior?

  2. chk
    chk avatar
    2 posts
    Member since:
    Jan 2009

    Posted 01 Jan 2015 Link to this post

    Can anyone provide me a solution?
    when ppt IsPinned== False and when navigating from, the not removed
  3. George
    George avatar
    1332 posts

    Posted 05 Jan 2015 Link to this post


    The described behavior is expected - on closing the Docking control hides the panes but it doesn't remove them from the source. Please refer to this blog post where you can find working project how to implement Docking control with MVVM and PRISM. In the project both scenarios are implemented - closing the toolbox panes doesn't remove them from the collection in the VM, but it does for the document panes. The logic is in the OnClose method in MainWindow/Page.xaml.cs file.

    Hope this helps.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top