protected override void OnLoaded(object sender, RoutedEventArgs e)
 {
     base.OnLoaded(sender, e);
     RibbonControl.SetCurrentValue(RibbonControl.RibbonStyleProperty, GetRibbonStyle());
     RibbonControl.SetCurrentValue(RibbonControl.RibbonTitleBarVisibilityProperty, GetTitleBarVisibility());
 }