NoesisGUI

DataTrigger Class

namespace Noesis | MSDN

Represents a trigger that applies property values or performs actions when the bound data meets a specified condition.

Style, ControlTemplate, and DataTemplate all have a triggers collection. A DataTrigger allows you to set property values when the property value of the data object matches a specified Value. For example, if you are displaying a list of Employee objects, you may want the foreground color to be different based on each Employee's current attendance. In some scenarios it may be more suitable to create a converter or to use a DataTemplateSelector.

Inheritance Hierarchy

DataTrigger

INDEX Class Hierarchy Index

Properties


Name Description
None Binding Gets or sets the binding that produces the property value of the data object.
RO Setters Gets a collection of Setter objects, which describe the property values to apply when the data item meets the specified condition.
None Value Gets or sets the value to be compared with the property value of the data object.

DP_ Dependency Property      RO_ Read-only


From BaseTrigger


Name Description
RO EnterActions Gets a collection of TriggerAction objects to apply when the trigger object becomes active. This property does not apply to the EventTrigger class
RO ExitActions Gets a collection of TriggerAction objects to apply when the trigger object becomes inactive. This property does not apply to the EventTrigger class

DP_ Dependency Property      RO_ Read-only

From DispatcherObject


Name Description
RO ThreadId Gets the thread this DispatcherObject is associated with. Returns NoThreadId when this object is not attached to any thread.

DP_ Dependency Property      RO_ Read-only

Methods

From DependencyObject

Name Description
ClearAnimation Clears the animation value of a property
ClearAnimation Clears the animation value of a property
ClearLocalValue Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier
CoerceValue Coerces and validates the effective property value
CoerceValue Coerces and validates the effective property value
DependencyPropertyChanged Returns the PropertyChanged event
Destroyed Destroyed delegate is raised when object is going to be destroyed
GetBaseValue Returns the base value without animation nor coerce (this never returns Expression like GetLocalValue)
GetExpression Gets the expression, if any, used to evaluate the specified property value
GetLocalValue Returns the local value of a dependency property, if it exists
GetValue Returns the current effective value of a dependency property on this instance of a DependencyObject
GetValueObject Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value
GetValueProvider Gets the provider that returns the effective value for the specified dependency property
HasAnimatedProperties Returns true if there is any animated property
InvalidateProperty Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed
IsCached Returns if the value is stored in the cache. If true, the priority is returned in the provider field
IsSealed Gets a value that indicates whether this instance is currently sealed (read-only)
SetAnimation Sets the animated value of a property
SetCurrentValue Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value
SetCurrentValueObject Sets the current value of a dependency property using a boxed value
SetExpression Sets the expression to be evaluated dynamically to obtain the value of the property
SetValue Sets the local value of a dependency property
SetValueObject Sets the local value (boxed) of a dependency property

From DispatcherObject

Name Description
CheckAccess Determines whether the calling thread has access to this DispatcherObject
VerifyAccess Enforces that the calling thread has access to this DispatcherObject
© 2017 Noesis Technologies