Class StackViewItem
An item in a StackView. It is a container for any UI element and must be used inside a StackView.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class StackViewItem : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
| Name | Description |
|---|---|
| StackViewItem(VisualElement) | Default constructor. |
Fields
| Name | Description |
|---|---|
| ussClassName | The main styling class of the StackViewItem. This is the class that is used in the USS file. |
Properties
| Name | Description |
|---|---|
| index | The index of the item in the stack. |
| status | The status of the item in the stack. |
| view | The StackView that contains this item. |
Events
| Name | Description |
|---|---|
| activated | This event is emitted when the item is activated in the stack. |
| activating | This event is emitted when the item is in the process of being activated in the stack. |
| deactivated | This event is emitted when the item is deactivated in the stack. |
| deactivating | This event is emitted when the item is in the process of being deactivated in the stack. |
| removed | This event is emitted when the item has been removed from the stack. It can be used to safely destroy extra data for example. |