Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ItemTriggerCondition Class

Represents a condition for the ItemMultiTrigger, which apply changes to property values based on a set of conditions.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public class ItemTriggerCondition :
    IItemTrigger

#Remarks

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

<dxb:BarCheckItem Content="Off">
    <dxb:BarCheckItem.Triggers>
        <dxb:ItemMultiTrigger>
            <dxb:ItemMultiTrigger.Conditions>
                <dxb:ItemTriggerCondition Property="IsChecked" 
                                          Value="True"/>
                <dxb:ItemTriggerCondition DependencyProperty="dxb:BarCheckItem.IsEnabled" 
                                          Value="True"/>
            </dxb:ItemMultiTrigger.Conditions>
            <dxb:ItemSetter Property="Content" Value="On"/>
        </dxb:ItemMultiTrigger>
    </dxb:BarCheckItem.Triggers>
</dxb:BarCheckItem>

#Inheritance

Object
ItemTriggerCondition
See Also