Represents an argument to be passed with RaiseUserEvent

A user event may also include a number of arguments that can be read from JavaScript.

UserEventArg accepts IntValue, FloatValue, StringValue or BoolValue.

Note: See this article for a more complete explanation of user events.

Example

The following example shows a Button that, when clicked, raises a user event with the argument message, which has the value Hello from UX!.

<UserEvent ux:Name="myEvent" />
<Button Text="Raise event with message">
    <Clicked>
        <RaiseUserEvent EventName="myEvent">
            <UserEventArg Name="message" StringValue="Hello from UX!" />
        </RaiseUserEvent>
    </Clicked>
</Button>

Location

Namespace
Fuse.Triggers.Actions
Package
Fuse.UserEvents 2.9.1
Show Uno properties and methods

Interface of UserEventArg

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.