I have a DataTrigger defined in my XAML which I want to use in several places. Is it possible to define it as a resource and then share it?
Here's my trigger:
<TextBlock.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding HasCurrentTest}" Value="True">
<Setter Property="TextBlock.Visibility" Value="Hidden" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
While I can define this in my Window.Resources and give it a key, how do I refer to it in the rest of my XAML?