Skip to content

Commit

Permalink
Merge pull request #1102 from cBrain-dk/backstagetooltip
Browse files Browse the repository at this point in the history
Fix that the backstage button tooltip would be showing when the backs…
  • Loading branch information
batzen committed Mar 6, 2023
2 parents edeec9b + 1ccef7f commit 2f2f2d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Fluent.Ribbon.Showcase/TestContent.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@
<Fluent:Backstage x:Name="Backstage"
Visibility="Collapsed"
IsOpen="{Binding IsBackstageOpen, Mode=TwoWay}">
<Fluent:Backstage.ToolTip>
<Fluent:ScreenTip Title="Backstage"
Text="A sample backstage with items and actions" />
</Fluent:Backstage.ToolTip>

<!--<Fluent:Backstage.Style>
<Style TargetType="Fluent:Backstage">
Expand Down
4 changes: 3 additions & 1 deletion Fluent.Ribbon/Themes/Controls/Backstage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
Height="Auto"
MinWidth="60"
Margin="0 0 0 0"
Background="{TemplateBinding Background}">
Background="{TemplateBinding Background}"
ToolTip="{TemplateBinding ToolTip}">
<Grid>
<Rectangle x:Name="rectangle" />
<ContentPresenter x:Name="contentPresenter"
Expand Down Expand Up @@ -83,5 +84,6 @@
<Setter Property="Header" Value="{Binding Source={x:Static Fluent:RibbonLocalization.Current}, Path=Localization.BackstageButtonText, Mode=OneWay}" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template" Value="{DynamicResource Fluent.Ribbon.Templates.BackstageToggleButton}" />
<Setter Property="ToolTipService.IsEnabled" Value="False" />
</Style>
</ResourceDictionary>

0 comments on commit 2f2f2d6

Please sign in to comment.