Struct PreviewInteraction
One interaction raised by a preview window's own static Interacted event, so a listening wizard can
follow what happens in the preview without the preview knowing anything about the wizard.
Inherited Members
Namespace: Serenity.Ui.Infrastructure.Editor.Preview
Assembly: Serenity.UnityUi.Infrastructure.Editor.dll
Syntax
public readonly struct PreviewInteraction
Remarks
Interacted is a static event: any open preview window raises it, regardless of which target it is
pointed at. Target is how a listener tells "my own scratch instance" apart from some other
standalone preview a different target happens to be open in — without it, a wizard editing one asset would
apply a click made in a preview of a different one to itself.
Constructors
PreviewInteraction(PreviewInteractionKind, int, Object)
Creates an interaction.
Declaration
public PreviewInteraction(PreviewInteractionKind kind, int elementIndex, Object target)
Parameters
| Type | Name | Description |
|---|---|---|
| PreviewInteractionKind | kind | What happened. |
| int | elementIndex | Index of the element the interaction is about. |
| Object | target | The Owner the interaction happened in. |
Fields
ElementIndex
Index of the element the interaction is about.
Declaration
public readonly int ElementIndex
Field Value
| Type | Description |
|---|---|
| int |
Kind
What happened.
Declaration
public readonly PreviewInteractionKind Kind
Field Value
| Type | Description |
|---|---|
| PreviewInteractionKind |
Target
The Owner the interaction happened in.
Declaration
public readonly Object Target
Field Value
| Type | Description |
|---|---|
| Object |