TriggerBase.EnterActions Property

Gets a collection of TriggerAction objects to apply when the trigger object becomes active. This property does not apply to the EventTrigger class.

Namespace:  System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public TriggerActionCollection EnterActions { get; }
<object>
  <object.EnterActions>
    OneOrMoreTriggerActions
  </object.EnterActions >
</object>

XAML Values

OneOrMoreTriggerActions

One or more TriggerAction objects.

Property Value

Type: System.Windows.TriggerActionCollection
The default value is null.

This property does not apply to the EventTrigger class because an event represents a point in time while EnterActions and ExitActions correspond to object states. For EventTrigger objects, use the Actions property instead.

NoteNote

This property can only be set in Extensible Application Markup Language (XAML) via the collection syntax shown, or by accessing the collection object and using its various methods such as Add. The property to access the collection object itself is read-only, the collection itself is read-write.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft