CairoExplorer.DockPanelSplitter.UpdateTargetElement C# (CSharp) Метод

UpdateTargetElement() приватный Метод

Update the target element (the element the DockPanelSplitter works on)
private UpdateTargetElement ( ) : void
Результат void
        private void UpdateTargetElement()
        {
            Panel dp = Parent as Panel;
            if (dp == null) return;

            int i = dp.Children.IndexOf(this);

            // The splitter cannot be the first child of the parent DockPanel
            // The splitter works on the 'older' sibling
            if (i > 0 && dp.Children.Count > 0)
            {
                element = dp.Children[i - 1] as FrameworkElement;
            }
        }