Declined
Last Updated: 20 Dec 2016 12:53 by ADMIN
Michael
Created on: 17 Dec 2016 17:18
Category: Docking
Type: Bug Report
1
Container is removed docking
2 comments
ADMIN
Georgi
Posted on: 20 Dec 2016 12:47
Hi mguntli ,

This is expected as what happens is that when the pane is moved the content is removed from the visual tree and the added again in the one of the ToolWindow. Therefore when it is removed from the tree its DataContext is lost, the GraphSource loses its source collection and therefore the remove is performed. 
Nevertheless you can persist the DataContext like shown in the attached project(TelerikDiagramDockTest_DataContextPersisted):
<telerikDocking:RadDocumentPane Header="Test" DataContext="{Binding DataContext,RelativeSource={RelativeSource AncestorType={x:Type telerik:RadDocking}}}">

Also what you can do is to set the GraphSource in code behind (which of course is not MVVM).

It would be great if you can give it a try and let us know if this works for you.
Michael
Posted on: 17 Dec 2016 17:20
Sorry, forgot the attachments and the description. And please change the title

The shape in container will be removed if i move the RadDockingPane.

Telerik WPF: 2016.3.1024.45
OS: Win10 x64 EN
Attached Files: