Skip to main content
You are viewing help content for a version that is no longer maintained/updated.
All docs
V20.1
  • Bar

    ItemTrigger Class

    Represents a trigger that applies a property value when a condition is satisfied.

    Namespace: DevExpress.Xpf.Bars

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

    NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

    Declaration

    public class ItemTrigger :
        ItemTriggerBase,
        IItemTrigger

    Remarks

    The following code sample sets the BarCheckItem‘s Content property to On when the BarCheckItem is checked:

    <dxb:BarCheckItem Content="Off">
        <dxb:BarCheckItem.Triggers>
            <dxb:ItemTrigger Property="IsChecked" Value="True">
                <dxb:ItemSetter Property="Content" Value="On"/>
            </dxb:ItemTrigger>
        </dxb:BarCheckItem.Triggers>
    </dxb:BarCheckItem>
    

    Bars - ItemTrigger Property property

    Inheritance

    See Also