Class BaseThreadAttachment
Abstract base class for custom thread attachments.
Inheritance
BaseThreadAttachment
Implements
Inherited Members
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.TryGetBinding(BindingId, out Binding)
VisualElement.TryGetDataSourceContext(BindingId, out DataSourceContext)
VisualElement.TryGetLastBindingToUIResult(in BindingId, out BindingResult)
VisualElement.TryGetLastBindingToSourceResult(in BindingId, out BindingResult)
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallbackOnce<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, CallbackOptions)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, CallbackOptions)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, CallbackOptions)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, CallbackOptions)
CallbackEventHandler.NotifyPropertyChanged(in BindingId)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public abstract class BaseThreadAttachment : BaseVisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IContextOverrideElement, IAdditionalDataHolder, IThreadAttachment
Constructors
BaseThreadAttachment()
Default constructor.
Declaration
protected BaseThreadAttachment()
Fields
iconUssClassName
The BaseThreadAttachment icon styling class.
Declaration
public const string iconUssClassName = "appui-thread-attachment__icon"
Field Value
| Type | Description |
|---|---|
| string |
nameLabelUssClassName
The BaseThreadAttachment name label styling class.
Declaration
public const string nameLabelUssClassName = "appui-thread-attachment__name"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The BaseThreadAttachment main styling class.
Declaration
public const string ussClassName = "appui-thread-attachment"
Field Value
| Type | Description |
|---|---|
| string |
Properties
attachmentIcon
The icon name for the attachment.
Declaration
public abstract string attachmentIcon { get; }
Property Value
| Type | Description |
|---|---|
| string |
attachmentName
The name of the attachment.
Declaration
public abstract string attachmentName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
RefreshAttachment()
Refreshes the attachment display with current values.
Declaration
protected void RefreshAttachment()