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