Class Button
Button UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Button : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, ISizeableElement, IPressable
Constructors
Name | Description |
---|---|
Button() | Default constructor. |
Button(Action) | Constructs a button with an Action that is triggered when the button is clicked. |
Fields
Name | Description |
---|---|
iconOnlyUssClassName | The Button icon only variant styling class. |
leadingContainerUssClassName | The Button leading container styling class. |
leadingIconUssClassName | The Button leading icon styling class. |
quietUssClassName | The Button quiet mode styling class. |
sizeUssClassName | The Button size styling class. |
subtitleUssClassName | The Button subtitle styling class. |
titleContainerUssClassName | The Button title container styling class. |
titleUssClassName | The Button title styling class. |
trailingContainerUssClassName | The Button trailing container styling class. |
trailingIconUssClassName | The Button trailing icon styling class. |
ussClassName | The Button main styling class. |
variantUssClassName | The Button variant styling class. |
Properties
Name | Description |
---|---|
clickable | Clickable Manipulator for this Button. |
contentContainer | The content container of this element. |
leadingIcon | The Button leading icon. |
quiet | The quiet state of the Button. |
size | The Button size. |
subtitle | The subtitle of the Button. |
title | The title of the Button. |
trailingIcon | The Button trailing icon. |
variant | The button variant. |
Events
Name | Description |
---|---|
clicked | Event triggered when the Button has been clicked. |