Gives focus to its containing Element when activated.

It also accepts a Target property, which specifies which element to give focus to.


In the following example, focus is given to a TextInput when a button is clicked.

    <TextInput ux:Name="input" Height="50" Value="Filler text"/>
    <Button Text="Button">
            <GiveFocus Target="input" />


Fuse.Triggers 1.11.2

Interface of GiveFocus

Inherited from TriggerAction

AtProgress : float ux

A value between 0 and 1 for when the action should be performed. Alternative to Delay.

Delay : float ux

The number of seconds after the start of the trigger that the action should be performed.

TargetNode : Node ux

The node that the action targets. If not specified then the enclsoing Trigger will be used. Several triggers can look for a target starting from this point. Some triggers require a Target to be specified.

Unroot uno

Called when the owner of this object is unrooted. This gives an action to cleanup resources or cancel pending actions.

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces