Skip to content

Interface IEvent

Definition

Namespace: StardewUI.Framework.Dom
Assembly: StardewUI.dll

Event wire-up in a StarML element.

public interface IEvent

Members

Properties

Name Description
Arguments The arguments to the event handler.
ContextRedirect Specifies the redirect to use for the context on which the method named HandlerName should exist.
HandlerName The name of the event handler (method) to run on the bound or redirected context.
Name The event name, i.e. name of the event field on the target IView.

Methods

Name Description
Print(StringBuilder) Prints the textual representation of this event attribute.

Details

Properties

Arguments

The arguments to the event handler.

System.Collections.Generic.IReadOnlyList<StardewUI.Framework.Dom.IArgument> Arguments { get; }
Property Value

IReadOnlyList<IArgument>


ContextRedirect

Specifies the redirect to use for the context on which the method named HandlerName should exist.

StardewUI.Framework.Dom.ContextRedirect ContextRedirect { get; }
Property Value

ContextRedirect

Remarks

Applies to the handler method itself but not any of the Arguments, which specify their own redirects when applicable.


HandlerName

The name of the event handler (method) to run on the bound or redirected context.

string HandlerName { get; }
Property Value

string


Name

The event name, i.e. name of the event field on the target IView.

string Name { get; }
Property Value

string


Methods

Print(StringBuilder)

Prints the textual representation of this event attribute.

void Print(System.Text.StringBuilder sb);
Parameters

sb   StringBuilder
Builder to receive the attribute's text output.