Ejemplo n.º 1
0
        private void OnIsVisibleChanged()
        {
            DockTreeSplit parentSplit = DockTreeClient.GetParentSplit(this);

            if (parentSplit != null)
            {
                parentSplit.InvalidateState();
            }
        }
Ejemplo n.º 2
0
        private static void OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DockTreeClient dockTreeClient = (DockTreeClient)d;

            if (dockTreeClient._isInitBinding)
            {
                return;
            }

            DockTree           dockTree;
            DependencyProperty dp = e.Property;

            if (dp == LeftDockTreeIsVisibleProperty)
            {
                dockTree = dockTreeClient.DockControl.LeftDockTree;
            }
            else if (dp == RightDockTreeIsVisibleProperty)
            {
                dockTree = dockTreeClient.DockControl.RightDockTree;
            }
            else if (dp == TopDockTreeIsVisibleProperty)
            {
                dockTree = dockTreeClient.DockControl.TopDockTree;
            }
            else if (dp == BottomDockTreeIsVisibleProperty)
            {
                dockTree = dockTreeClient.DockControl.BottomDockTree;
            }
            else
            {
                Debug.Assert(dp == DocumentDockTreeIsVisibleProperty);
                dockTree = dockTreeClient.DockControl.DocumentDockTree;
            }

            dockTreeClient.GetParentSplit(dockTree).InvalidateState();
        }