Esempio n. 1
0
 public TextField(
     Binding <string> value           = null,
     string placeholder               = null,
     Action <string> onEditingChanged = null,
     Action <string> onCommit         = null) : base(value, nameof(Text))
 {
     Placeholder      = placeholder;
     OnEditingChanged = new MulticastAction <string>(value, onEditingChanged);
     OnCommit         = onCommit;
 }
Esempio n. 2
0
 public Slider(
     Binding <float> value = null,
     float from            = 0,
     float through         = 100,
     float by = 1,
     Action <float> onEditingChanged = null) : base(value, nameof(Value))
 {
     From             = from;
     Through          = through;
     By               = by;
     OnEditingChanged = new MulticastAction <float>(value, onEditingChanged);
 }
Esempio n. 3
0
 public Toggle(
     Binding <bool> value    = null,
     Action <bool> onChanged = null) : base(value, nameof(IsOn))
 {
     IsOnChanged = new MulticastAction <bool>(value, onChanged);
 }