Represents a trigger that applies property values or performs actions when the bound data meet a set of conditions.
Assembly: PresentationFramework (in PresentationFramework.dll)
Gets a collection of Condition objects. Changes to property values are applied when all the conditions in the collection are met.
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets a collection of Setter objects that describe the property values to apply when all the conditions of the are met.
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
Returns a string that represents the current object.(Inherited from Object.)
A MultiTrigger, except that the conditions of a are based on property values of bound data instead of those of a UIElement. In a , a condition is met when the property value of the data item matches the specified Value. You can then use setters or the EnterActions and ExitActions properties to apply changes or start actions when all of the conditions are met.object is similar to a
The Setters property of a object can only consist of Setter objects. Adding a Setter child to a object implicitly adds it to the SetterBaseCollection for the object. EventSetter objects are not supported; only Style.Setters supports EventSetter objects.
For information about when to use triggers and when to use other techniques, see Data Templating Overview.
In the following example, the ItemsSource property of the ListBox is bound to Places, an ObservableCollection<T> of Place objects. Place objects have properties Name and State. The definition of Place and Places are not shown.
Each ListBoxItem of the ListBox displays a Place object. The Style in the example is applied to each ListBoxItem. The Condition elements of the specify that if the Name and State of the Place data item are Portland and OR respectively, then the background of corresponding ListBoxItem is set to Cyan.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.