Vixen
02b45cc4
csharp
public sealed class ToggleButton

A button that stays pressed.

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

Remarks

The bold-italic-underline control, and the one a toolbar is made of. It is a button rather than a checkbox because it is activated like one and looks like one; what it has instead of a tick is Checked, which :checked reads.

⚠ Toggling happens before the click is reported, so a handler asking IsChecked gets the state the user just chose rather than the one they were leaving. Every toolkit that got this backwards produced a generation of handlers written with an inverted condition.

Fields and properties (2)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool ActivatesOnEnter

Used by (24)

  • ButtonTestsVixen.Ui.Controls.Tests
  • DisabledStateTestsVixen.Ui.Controls.Tests
  • TimelineHeaderVixen.Ui.Controls.Advanced
  • ToggleInteractionTestsVixen.Ui.Controls.Tests
  • AnimationClipViewVixen.Editor.AssetEditors
  • AnimationGraphViewVixen.Editor.AssetEditors
  • AudioMixerViewVixen.Editor.AssetEditors
  • ConsoleViewVixen.Editor.Ui
  • ConsoleViewTestsVixen.Editor.Ui.Tests
  • EditorAffordanceTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • InputActionsViewVixen.Editor.AssetEditors
  • InspectorViewVixen.Editor.Inspector
  • MoveSetViewVixen.Editor.AssetEditors
  • OutlinerColumnTestsVixen.Editor.App.Tests
  • ProjectBrowserVixen.Editor.App
  • ProxyShapeViewVixen.Editor.AssetEditors
  • SequenceViewVixen.Editor.AssetEditors
  • SettingsWindowTestsVixen.Editor.App.Tests
  • ShaderGraphViewVixen.Editor.AssetEditors
  • ShapeVocabularyViewVixen.Editor.AssetEditors
  • SpriteSheetViewVixen.Editor.AssetEditors
  • TextureImportViewVixen.Editor.AssetEditors
  • VfxGraphViewVixen.Editor.AssetEditors