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

Equivalent of winform raddock.RemoveWindow method in WPF

1 Answer 53 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tayyaba
Top achievements
Rank 1
Tayyaba asked on 13 Dec 2017, 07:52 AM

Hi,

 

I'm changing my winform application into WPF therefore i need to se the equivalent docking methods for WPF.

In winform I was using Raddock.RemoveWindow(window, DockWindowCloseAction.CloseAndDispose) while disposing the DockControl, I want to know it's equivalent method for WPF docking.

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 15 Dec 2017, 01:22 PM
Hi,

I'm unsure whether I understood you correctly, but if you dispose of the RadDocking control, you don't need to manually remove its children, as this will be done by the control itself.

If you had something else in mind, you can remove Panes and PaneGroups through the RemoveFromParent method, remove ToolWindows by calling their Close method and remove RadSplitContainers with the Remove method of the RadDocking's Items collection.

Please let me know if you find this information helpful. If that is not the case, please elaborate on why and when you need to manually close the windows and I will gladly assist you further.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Tayyaba
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or