Skip to main content

Class AspectRatioPanel.UxmlTraits

Defines the UXML attributes for AspectRatioPanel and handles initializing them when creating the element from UXML.

[Preserve]
public class AspectRatioPanel.UxmlTraits : VisualElement.UxmlTraits

Inheritance​

Properties​

uxmlChildElementsDescription​

Describes child elements allowed inside the AspectRatioPanel. None in this case.

public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }

Property Value​

IEnumerable<UxmlChildElementDescription>

Methods​

Init(VisualElement, IUxmlAttributes, CreationContext)​

Initializes the AspectRatioPanel with values from UXML attributes.

public override void Init(VisualElement visualElement, IUxmlAttributes attributes, CreationContext creationContext)

Parameters​

NameTypeDescription
visualElementVisualElementThe element instance being initialized.
attributesIUxmlAttributesAttributes from the UXML file.
creationContextCreationContextContext for UXML creation.
  • Properties
    • uxmlChildElementsDescription
  • Methods
    • Init(VisualElement, IUxmlAttributes, CreationContext)