Creates a Trigger that fires and dynamically re-computes a nested Trigger
when the contents of an UndoablePropertyT or
UndoableCrossReferencePropertyT changes.
Namespace: Spotfire.Dxp.Framework.DocumentModel
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public static Trigger CreateMutablePropertyTrigger<T>( DocumentNode node, PropertyName propertyName, ReferenceTriggerDeclarer<T> declarer )
Parameters
- node
- Type: Spotfire.Dxp.Framework.DocumentModelDocumentNode
The node containing the mutable property. - propertyName
- Type: Spotfire.Dxp.Framework.DocumentModelPropertyName
PropertyName of the mutable property. This must be an UndoableProperty or an UndoableCrossReferenceProperty owned by the specified node. - declarer
- Type: Spotfire.Dxp.Framework.DocumentModelReferenceTriggerDeclarerT
The delegate used to declare triggers on the node owned by or pointed to by the specified node and propertyName. The MutablePropertyTrigger fires when one of the trigger returned by this delegate fires or when the property specified node and propertyName is changed. This delegate is re-evaluated each time such a change occurs.NOTE 1: The declarer delegate shall not modify the document.
NOTE 2: The declarer delegate shall not have any free variables. It must build its trigger by only refering to its argument node. Failure to follow this pattern may result in memory leaks.
Type Parameters
- T
Return Value
Type: TriggerThe trigger.
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also