protected void SetViewModelFactory(ViewModelFactory factory)
 {
     ViewModelFactory?.ClearChangedListeners();
     ViewModelFactory          = factory;
     ViewModelFactory.Changed += OnPropertyChanged;
     RibbonUI?.Invalidate();
 }