diff --git a/Fluent/Services/KeyTipService.cs b/Fluent/Services/KeyTipService.cs index 8bcc780f4..70a9549df 100644 --- a/Fluent/Services/KeyTipService.cs +++ b/Fluent/Services/KeyTipService.cs @@ -371,6 +371,11 @@ private void Show() private Backstage GetBackstage() { + if (this.ribbon.Menu == null) + { + return null; + } + var control = this.ribbon.Menu as Backstage ?? UIHelper.FindImmediateVisualChild(this.ribbon.Menu, obj => obj.Visibility == Visibility.Visible && obj.IsOpen); if (control == null) @@ -385,6 +390,11 @@ private Backstage GetBackstage() private ApplicationMenu GetApplicationMenu() { + if (this.ribbon.Menu == null) + { + return null; + } + var control = this.ribbon.Menu as ApplicationMenu ?? UIHelper.FindImmediateVisualChild(this.ribbon.Menu, obj => obj.Visibility == Visibility.Visible); if (control == null)