All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Bar

BarItemTriggerCollection.TargetType Property

Gets or sets the type for which the triggers are intended.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public Type TargetType { get; set; }
Public Property TargetType As Type

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>

GalleryControl_Ex

See Also