Skip to content

Commit

Permalink
Fix MultipleChoiceFilter: Active filter marker is visible when grid i…
Browse files Browse the repository at this point in the history
…s empty
  • Loading branch information
tom-englert committed Aug 28, 2021
1 parent 326a648 commit 67a3282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DataGridExtensions/Themes/Generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
Style="{DynamicResource {x:Type ToggleButton}}">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="IsFilterActiveMarker"
Visibility="Hidden"
Text="."
Margin="2,0,-4,0"
Foreground="{Binding ElementName=FilterSymbol, Path=Foreground}" FontWeight="Bold" />
Expand Down Expand Up @@ -314,10 +315,10 @@
Value="Transparent" />
</Trigger>
<DataTrigger Binding="{Binding Path=Filter.IsFiltered, RelativeSource={RelativeSource Self}}"
Value="False">
Value="True">
<Setter TargetName="IsFilterActiveMarker"
Property="Visibility"
Value="Hidden" />
Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding Path=HasTextFilter, RelativeSource={RelativeSource Self}}"
Value="true">
Expand Down

0 comments on commit 67a3282

Please sign in to comment.