Vixen
02b45cc4
csharp
public sealed class ClickEvent

A control was activated.

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

Remarks

Activation rather than a click, which is why it is not simply TapEvent renamed: a button is activated by Space, by Enter, by its access key and by a tap, and a handler that had to listen for four things to hear one would get three of them wrong. Device says which it was for the handlers that care — a menu closing on activation wants to know whether to return the focus to the keyboard.

It bubbles, which is what makes a toolbar a real thing. One handler on the toolbar hears every button inside it and reads Source, rather than the toolbar subscribing to twenty children and unsubscribing from each as it is rebuilt.

Fields and properties (3)

  • public ActivationDevice Device

    What activated it.

  • public int Count

    How many taps in a row, for the pointer case. One for a keyboard activation.

  • public ModifierKeys Modifiers

    What was held on the keyboard at the time.

Used by (48, showing 40)

  • ShellHelloUi
  • BreadcrumbVixen.Ui.Controls
  • ButtonTestsVixen.Ui.Controls.Tests
  • ComboBoxVixen.Ui.Controls
  • ControlVixen.Ui.Controls
  • ControlMarkupVixen.Ui.Controls
  • DialogVixen.Ui.Controls
  • DockingHostVixen.Ui.Controls.Advanced
  • ExpanderVixen.Ui.Controls
  • MenuVixen.Ui.Controls
  • MenuBarVixen.Ui.Controls
  • PaginationVixen.Ui.Controls
  • PropertyGridVixen.Ui.Controls.Advanced
  • RadialMenuVixen.Ui.Controls
  • RadioGroupVixen.Ui.Controls
  • SearchBoxVixen.Ui.Controls
  • SelectBaseVixen.Ui.Controls
  • SurfaceTestsVixen.Ui.Controls.Tests
  • TabsVixen.Ui.Controls
  • ToastHostVixen.Ui.Controls
  • AddComponentMenuVixen.Editor.App
  • AddressableGroupsViewVixen.Editor.AssetEditors
  • AnimationClipViewVixen.Editor.AssetEditors
  • AnimationGraphViewVixen.Editor.AssetEditors
  • AssetDrawerVixen.Editor.Inspector
  • AudioMixerViewVixen.Editor.AssetEditors
  • CommandPaletteVixen.Editor.Ui
  • CompositorViewVixen.Editor.AssetEditors
  • DialogSessionVixen.Editor.Ui
  • InputActionsViewVixen.Editor.AssetEditors
  • InspectorViewVixen.Editor.Inspector
  • MaterialViewVixen.Editor.AssetEditors
  • MenuPresenterVixen.Editor.Ui
  • MenuTestsVixen.Editor.Ui.Tests
  • MessageLogViewVixen.Editor.Ui
  • MoveSetViewVixen.Editor.AssetEditors
  • NodeSearchPopupVixen.Editor.NodeGraph
  • PaletteTestsVixen.Editor.Ui.Tests
  • ProxyShapeViewVixen.Editor.AssetEditors
  • SequenceViewVixen.Editor.AssetEditors