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.
1 Answer, 1 is accepted
answered on 15 Dec 2017, 01:22 PM
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.
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.