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

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

2 Answers 29 Views
Docking
This is a migrated thread and some comments may be shown as answers.
chk
Top achievements
Rank 1
chk asked on 01 Jan 2015, 04:12 PM
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}"/>
</telerik:RadSplitContainer>

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

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

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];
SideBars.ToList().ForEach(sidebarRegion.Remove);

Can you give me a solution for this behavior?


2 Answers, 1 is accepted

Sort by
0
chk
Top achievements
Rank 1
answered on 01 Jan 2015, 11:11 PM
Can anyone provide me a solution?
when ppt IsPinned== False and when navigating from, the not removed
thanks!
0
George
Telerik team
answered on 05 Jan 2015, 08:48 AM
Hello,

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.

Regards,
George
Telerik
 

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.

 
Tags
Docking
Asked by
chk
Top achievements
Rank 1
Answers by
chk
Top achievements
Rank 1
George
Telerik team
Share this question
or