csharp
public sealed class SearchBoxA field with a magnifying glass and a way to empty it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The clear button is a real IconButton rather than something drawn, because it has to be clickable, hoverable and — for a user who cannot use a mouse — reachable. It is hidden by the theme while the field is empty, using the same empty class the placeholder is shown by, so the two can never disagree about whether there is anything in the box.
Fields and properties (3)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
public Icon SearchIconThe magnifying glass.
public IconButton ClearButtonThe button that empties it.
Methods (1)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
Used by (20)
- ShellHelloUi
- DisabledStateTestsVixen.Ui.Controls.Tests
- PropertyGridVixen.Ui.Controls.Advanced
- TextFieldTestsVixen.Ui.Controls.Tests
- AddComponentMenuVixen.Editor.App
- AssetPickerVixen.Editor.App
- AssetPickerTestsVixen.Editor.App.Tests
- ChromeFixtureVixen.Editor.Ui.Tests
- CommandPaletteVixen.Editor.Ui
- ConsoleViewVixen.Editor.Ui
- EditorApplicationVixen.Editor.App
- GridViewTestsVixen.Editor.App.Tests
- InspectorViewVixen.Editor.Inspector
- KeyBindingsViewVixen.Editor.Ui
- MessageLogViewVixen.Editor.Ui
- NodeSearchPopupVixen.Editor.NodeGraph
- OutlinerTestsVixen.Editor.App.Tests
- PluginManagerViewVixen.Editor.App
- ProjectBrowserVixen.Editor.App
- SettingsViewVixen.Editor.Ui