BarItemTriggerCollection.TargetType Property
Gets or sets the type for which the triggers are intended.
Namespace: DevExpress.Xpf.Bars
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
Type | The target type for triggers. |
Remarks
The following code sample uses triggers defined in the ThemedWindow’s Resources:
<dx:ThemedWindow ...
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"/>
<dx:ThemedWindow.Resources>
<dxb:BarItemTriggerCollection x:Key="buttonItemTriggers" TargetType="{x:Type dxb:BarCheckItem}">
<dxb:ItemTrigger Property="IsMouseOver" Value="True">
<dxb:ItemSetter Property="Foreground" Value="Green"/>
</dxb:ItemTrigger>
<dxb:ItemTrigger Property="IsChecked" Value="True">
<dxb:ItemSetter Property="Foreground" Value="Blue"/>
</dxb:ItemTrigger>
</dxb:BarItemTriggerCollection>
</dx:ThemedWindow.Resources>
<dxb:BarCheckItem x:Name="item" Content="CheckItem" Triggers="{StaticResource buttonItemTriggers}"/>
</dx:ThemedWindow>
See Also