Vixen
02b45cc4
csharp
public sealed class FocusEvent

The focus arriving at or leaving an element.

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

Remarks

Routed like any other event, so an ancestor can hear that something inside it took the focus without every control having to tell it. That is what a form uses to know which field is current, and what a scroll view uses to bring it into view.

Fields and properties (3)

  • public bool Gained

    Whether this element is taking the focus rather than losing it.

  • public UiElement? Previous

    What had the focus before.

  • public UiElement? Next

    What has it now.

Used by (14)

  • ButtonBaseVixen.Ui.Controls
  • DockingHostVixen.Ui.Controls.Advanced
  • FocusTestsVixen.Ui.Tests
  • NavigationTestsVixen.Ui.Tests
  • NumericInputVixen.Ui.Controls
  • ScrollViewVixen.Ui.Controls
  • SurfaceTestsVixen.Ui.Tests
  • TextFieldVixen.Ui.Controls
  • TreeViewVixen.Ui.Controls.Advanced
  • UiDocumentVixen.Ui
  • EditorApplicationVixen.Editor.App
  • MultilineDrawerVixen.Editor.Inspector
  • SceneViewportVixen.Editor.SceneView
  • StringDrawerVixen.Editor.Inspector