Ejemplo n.º 1
0
 private static VisualElement CreateSlider(IUxmlAttributes bag, CreationContext ctx)
 {
     return(new Slider(
                bag.GetPropertyFloat("lowValue", 0),
                bag.GetPropertyFloat("highValue", 0),
                null,
                bag.GetPropertyEnum("direction", Slider.Direction.Horizontal)
                ));
 }
 public T GetValueFromBag(IUxmlAttributes bag)
 {
     return(bag.GetPropertyEnum <T>(name, defaultValue));
 }