In My case I am creating floating pane in the code. I am not sure how to apply the attched property that you have created.
If I apply implicit style it doesn't work, Here is my code.
private void ShowNewsView(NotificationMessage msg)
{
UserControl view = new UserControl ();
view.DataContext = msg.Sender;
RadSplitContainer container = GetRadSplitContainer(view, "News", new Size(400, 300));
radDocking1.Items.Add(container);
}
private static RadSplitContainer GetRadSplitContainer(UserControl view, string header, Size size)
{
RadSplitContainer container = new RadSplitContainer() { HorizontalAlignment = HorizontalAlignment.Stretch, VerticalAlignment = VerticalAlignment.Stretch };
RadDocking.SetDockState(container, DockState.FloatingOnly);
RadDocking.SetFloatingSize(container, size);
RadDocking.SetFloatingLocation(container, new Point(250, 50));
RadPaneGroup radPaneGroup = new RadPaneGroup();
RadPane radPane = new RadPane()
{
CanUserPin = false,
CanDockInDocumentHost = true,
Content = view,
Header = header,
};
radPaneGroup.Items.Add(radPane);
container.Items.Add(radPaneGroup);
radPaneGroup.SetValue(RestrictToolWindow.IsRestrictedProperty, true);
return container;
}
Your Help will be appreciated! Thanks