Represents a trigger that applies property values or performs actions when a set of conditions are satisfied.
Assembly: PresentationFramework (in PresentationFramework.dll)
Gets a collection of Condition objects. Changes to property values are applied when all of 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, which describe the property values to apply when all of 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.)
Conditions. A condition is met when the value of the property (specified by the Property property of the Condition class) of the element matches the specified Value. The comparison is a reference equality check. You can then use setters or the EnterActions and ExitActions properties to apply changes or start actions when all of the conditions are met.enables you to set property values or start actions based on a collection of
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.
The following example contains twos. The first sets the MinWidth property value when the HasItems property is false and the Width property is Auto. The second one is similar but is for the MinHeight property.
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.