Set<T> Class
Permanently changes the value of a property.
Note: If you wish to temporarily change the value of a property, use Change instead.
The basic syntax of Set
is as follows:
<Set myNode.MyProperty="MyValue" />
However, this is just syntactic sugar. The following is equivalent:
<Set Target="myNode.MyProperty" Value="MyValue" />
Example
The following example consists of a red Rectangle that, once clicked, changes its color to blue.
<Rectangle ux:Name="myRectangle" Color="Red">
<Clicked>
<Set myRectangle.Color="Blue" />
</Clicked>
</Rectangle>
Location
- Namespace
- Fuse.Triggers.Actions
- Package
- Fuse.Triggers 2.9.1
Interface of Set<T>
Set(Property<T>) Constructor uno
Target : Property<T> uno
Value : T ux
Inherited from TriggerAction
AtProgress : float ux
Delay : float ux
The number of seconds after the start of the trigger that the action should be performed.
Direction : TriggerWhen ux
IsActive : bool ux
IsProgressTriggered : bool uno
OnUnrooted uno
Perform(Node) uno
PerformFromNode(Node) uno
ProgressWhen(float) : float uno
SourceFileName : string ux
hide
SourceLineNumber : int ux
hide
TargetNode : Node ux
Unroot uno
When : TriggerWhen ux
Inherited from PropertyObject
AddPropertyListener(IPropertyListener) uno
OnPropertyChanged(Selector, IPropertyListener) uno
OnPropertyChanged(Selector) uno
RemovePropertyListener(IPropertyListener) uno
Inherited from object
Equals(object) : bool uno
GetHashCode : int uno
GetType : Type uno
ToString : string uno
Attached UX Attributes
GlobalKey (attached by Resource) : string ux
Implemented Interfaces
ISourceLocation uno
hide