Class DropZone
A drop zone is a container that can be used to drop content into.
Implements
Inherited Members
VisualElement.ExecuteDefaultAction(EventBase)
VisualElement.Focus()
VisualElement.Overlaps(Rect)
VisualElement.ToString()
VisualElement.GetFirstOfType<T>()
VisualElement.GetFirstAncestorOfType<T>()
VisualElement.canGrabFocus
VisualElement.focusController
VisualElement.cacheAsBitmap
CallbackEventHandler.RegisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.RegisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TUserArgsType, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType>(EventCallback<TEventType>, TrickleDown)
CallbackEventHandler.UnregisterCallback<TEventType, TUserArgsType>(EventCallback<TEventType, TUserArgsType>, TrickleDown)
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class DropZone : BaseVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IContextOverrideElement, IAdditionalDataHolder
Constructors
DropZone()
Create a new DropZone.
Declaration
public DropZone()
Fields
backgroundUssClassName
The DropZone background styling class.
Declaration
public const string backgroundUssClassName = "appui-dropzone__background"
Field Value
Type | Description |
---|---|
string |
frameUssClassName
The DropZone frame styling class.
Declaration
public const string frameUssClassName = "appui-dropzone__frame"
Field Value
Type | Description |
---|---|
string |
stateUssClassName
The DropZone state styling class.
Declaration
public const string stateUssClassName = "appui-dropzone--"
Field Value
Type | Description |
---|---|
string |
ussClassName
The DropZone main styling class.
Declaration
public const string ussClassName = "appui-dropzone"
Field Value
Type | Description |
---|---|
string |
visibleIndicatorUssClassName
The DropZone visible indicator styling class.
Declaration
public const string visibleIndicatorUssClassName = "appui-dropzone--visible-indicator"
Field Value
Type | Description |
---|---|
string |
Properties
contentContainer
The container used to display the content.
Declaration
public override VisualElement contentContainer { get; }
Property Value
Type | Description |
---|---|
VisualElement |
Overrides
controller
The controller used to manage the drag and drop operations.
Declaration
public DropZoneController controller { get; }
Property Value
Type | Description |
---|---|
DropZoneController |
state
The state of the DropZone.
Declaration
public DragAndDropState state { get; set; }
Property Value
Type | Description |
---|---|
DragAndDropState |
visibleIndicator
The visible indicator state of the DropZone.
Declaration
public bool visibleIndicator { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetDropZoneStateUssClassName(DragAndDropState)
Declaration
public static string GetDropZoneStateUssClassName(DragAndDropState enumValue)
Parameters
Type | Name | Description |
---|---|---|
DragAndDropState | enumValue |
Returns
Type | Description |
---|---|
string |