示例#1
0
        private void OnLoaded(object sender, RoutedEventArgs eventArgs)
        {
            _dockControl = DockHelper.GetDockControl(this);
            _dockControl?.Register(this);

            UpdateVisualStates(true);
        }
示例#2
0
        private void OnLoaded(object sender, RoutedEventArgs eventArgs)
        {
            _dockControl = DockHelper.GetDockControl(this);
            if (_dockControl != null)
            {
                _dockControl.Register(this);
                CommandManager.InvalidateRequerySuggested();
            }

            UpdateVisualStates(true);
        }