Skip to content

Commit 3fe3161

Browse files
authored
Disable PopupBox tooltip when popup is open (#2916) (#2978)
1 parent f5766d8 commit 3fe3161

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1+
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters"
44
xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf">
@@ -70,6 +70,7 @@
7070
NotNullValue="Collapsed"
7171
NullValue="Visible" />
7272
<converters:BrushRoundConverter x:Key="BrushRoundConverter" />
73+
<converters:NotConverter x:Key="NotConverter" />
7374

7475
<wpf:PackIcon x:Key="MaterialDesignPopupBoxToggleContent"
7576
Width="24"
@@ -86,6 +87,7 @@
8687
<Setter Property="PopupHorizontalOffset" Value="5" />
8788
<Setter Property="PopupUniformCornerRadius" Value="2" />
8889
<Setter Property="PopupVerticalOffset" Value="5" />
90+
<Setter Property="ToolTipService.IsEnabled" Value="{Binding IsPopupOpen, RelativeSource={RelativeSource Self}, Converter={StaticResource NotConverter}}"/>
8991
<Setter Property="Template">
9092
<Setter.Value>
9193
<ControlTemplate TargetType="{x:Type wpf:PopupBox}">

0 commit comments

Comments
 (0)