Triggers Property
Collapse the table of content
Expand the table of content

ControlTemplate.Triggers Property


Gets a collection of TriggerBase objects that apply property changes or perform actions based on specified conditions.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public TriggerCollection Triggers { get; }

Property Value

Type: System.Windows.TriggerCollection

A collection of TriggerBase objects. The default value is null.



One or more TriggerBase objects (usually these are a Trigger).

The following example demonstrates the use of this property:

The above example uses the following resources:

For the complete sample, see Styling with ControlTemplates Sample.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft