Skip to main content

Class SliderIntWithTickMark.UxmlTraits

UXML traits to initialize the slider properties from UXML attributes.

public class SliderIntWithTickMark.UxmlTraits : VisualElement.UxmlTraits

Inheritance​

Properties​

uxmlChildElementsDescription​

Returns an enumerable containing UxmlChildElementDescription(typeof(VisualElement)), since VisualElements can contain other VisualElements.

public override IEnumerable<UxmlChildElementDescription> uxmlChildElementsDescription { get; }

Property Value​

IEnumerable<UxmlChildElementDescription>

Methods​

Init(VisualElement, IUxmlAttributes, CreationContext)​

Initialize VisualElement properties using values from the attribute bag.

public override void Init(VisualElement ve, IUxmlAttributes bag, CreationContext cc)

Parameters​

NameTypeDescription
veVisualElementThe object to initialize.
bagIUxmlAttributesThe attribute bag.
ccCreationContextThe creation context; unused.
  • Properties
    • uxmlChildElementsDescription
  • Methods
    • Init(VisualElement, IUxmlAttributes, CreationContext)