In order to get the position of the pane, you have to do the following:
- hook to the PaneStateChange
event of the Docking control, which fires every time a pane is moved around. After that get the pane which is not floating.
- using the GetParentSplitContainer
method, you could get the SplitContainer in which the current pane is in. You can get the position of that SplitContainer with the RadDocking.GetDockState()
sender, Telerik.Windows.RadRoutedEventArgs e)
var pane = e.OriginalSource
var split = pane.GetParentSplitContainer();
var pos = RadDocking.GetDockState(split);
Hope this information helps.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>