Vixen
02b45cc4
csharp
public sealed class IconButton

A button that is an icon and nothing else.

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

Remarks

Its own type rather than a button with no label, because the two are different shapes: this one is square and its padding is even, and a theme cannot tell "a button whose label happens to be empty" from "a button meant to be an icon" without a selector on emptiness that the cascade cannot express.

⚠ Label is still meaningful and is still not drawn. It is the control's name — what a tooltip shows and what an accessibility bridge will read — and the theme hides it, so setting it costs nothing and leaving it unset costs a button nobody can identify. That the hiding is the theme's job rather than this type's is what lets a dense toolbar choose to show the labels after all.

Fields and properties (1)

  • protected override string TagName

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

Methods (1)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

Used by (21)

  • ButtonTestsVixen.Ui.Controls.Tests
  • ColorPickerVixen.Ui.Controls.Advanced
  • ComboBoxVixen.Ui.Controls
  • DialogVixen.Ui.Controls
  • DockGroupViewVixen.Ui.Controls.Advanced
  • DockTabVixen.Ui.Controls.Advanced
  • DockingHostVixen.Ui.Controls.Advanced
  • PropertyGridVixen.Ui.Controls.Advanced
  • PropertyRowVixen.Ui.Controls.Advanced
  • SearchBoxVixen.Ui.Controls
  • ToastVixen.Ui.Controls
  • AssetDrawerVixen.Editor.Inspector
  • ComponentsViewVixen.Editor.App
  • CompositeTestsVixen.Editor.Inspector.Tests
  • InspectorRowVixen.Editor.Inspector
  • InspectorViewVixen.Editor.Inspector
  • ListDrawerVixen.Editor.Inspector
  • TargetOverrideMatrixVixen.Editor.AssetEditors
  • TaskCenterVixen.Editor.Ui
  • TaskCenterTestsVixen.Editor.Ui.Tests
  • ToolbarPresenterVixen.Editor.Ui