Vixen
02b45cc4
csharp
public abstract class UiEvent

Anything routed through the element tree.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Capture down, target, bubble back out — the DOM's model, and it is the right one for the same reason: an ancestor sometimes needs to see an event before its children (a scroll view swallowing a drag) and usually needs to see it after (a button inside a list row that also wants the click). One direction can express neither case without the handler knowing about the other.

Handled stops the walk for everyone except handlers that asked for handled events too. That exception exists because "did anyone deal with this" is a legitimate question — a focus manager or a diagnostic overlay needs to hear about the click that a button already consumed.

Fields and properties (4)

  • public UiElement? Source

    The element the event is about.

  • public UiElement? Current

    The element whose handler is running now.

  • public RoutingPhase Phase

    Where on the route it is.

  • public bool Handled

    Whether something has dealt with it.

Used by (98, showing 40)

  • ShellHelloUi
  • AccessKeyEventVixen.Ui
  • AccessKeyTestsVixen.Ui.Tests
  • AccordionVixen.Ui.Controls
  • BreadcrumbVixen.Ui.Controls
  • BuildContextVixen.Ui
  • ButtonBaseVixen.Ui.Controls
  • ClickEventVixen.Ui.Controls
  • CodeEditorVixen.Ui.Controls.Advanced
  • ColorFieldVixen.Ui.Controls.Advanced
  • ColorInputVixen.Ui.Controls.Advanced
  • ColorStripVixen.Ui.Controls.Advanced
  • ColorSwatchVixen.Ui.Controls.Advanced
  • ComboBoxVixen.Ui.Controls
  • ContextMenuVixen.Ui.Controls
  • ControlVixen.Ui.Controls
  • CurveEditorVixen.Ui.Controls.Advanced
  • DataGridVixen.Ui.Controls.Advanced
  • DialogVixen.Ui.Controls
  • DockSplitterViewVixen.Ui.Controls.Advanced
  • DockingHostVixen.Ui.Controls.Advanced
  • DragEventVixen.Ui
  • EventRouterVixen.Ui
  • ExpanderVixen.Ui.Controls
  • FocusEventVixen.Ui
  • GestureTestsVixen.Ui.Tests
  • GradientEditorVixen.Ui.Controls.Advanced
  • InputTestsVixen.Ui.Tests
  • KeyEventVixen.Ui
  • KeyboardTestsVixen.Ui.Tests
  • LongPressEventVixen.Ui
  • MenuVixen.Ui.Controls
  • MenuBarVixen.Ui.Controls
  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeMinimapVixen.Ui.Controls.Advanced
  • NumericInputVixen.Ui.Controls
  • OpenChangedEventVixen.Ui.Controls
  • OverlayVixen.Ui.Controls
  • PaginationVixen.Ui.Controls
  • PointerEventVixen.Ui