21 references to Stepper
Microsoft.Maui.Controls (21)
Hosting\AppHostBuilderExtensions.cs (1)
83
handlersCollection.AddHandler<
Stepper
, StepperHandler>();
Stepper\Stepper.cs (20)
9
public partial class Stepper : View, IElementConfiguration<
Stepper
>, IStepper
12
public static readonly BindableProperty MaximumProperty = BindableProperty.Create(nameof(Maximum), typeof(double), typeof(
Stepper
), 100.0,
13
validateValue: (bindable, value) => (double)value > ((
Stepper
)bindable).Minimum,
16
var
stepper = (
Stepper
)bindable;
22
public static readonly BindableProperty MinimumProperty = BindableProperty.Create(nameof(Minimum), typeof(double), typeof(
Stepper
), 0.0,
23
validateValue: (bindable, value) => (double)value < ((
Stepper
)bindable).Maximum,
26
var
stepper = (
Stepper
)bindable;
32
public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(double), typeof(
Stepper
), 0.0, BindingMode.TwoWay,
35
var
stepper = (
Stepper
)bindable;
40
var
stepper = (
Stepper
)bindable;
48
public static readonly BindableProperty IncrementProperty = BindableProperty.Create(nameof(Increment), typeof(double), typeof(
Stepper
), 1.0,
49
propertyChanged: (b, o, n) => { ((
Stepper
)b).digits = (int)(-Math.Log10((double)n) + 4).Clamp(1, 15); });
51
readonly Lazy<PlatformConfigurationRegistry<
Stepper
>> _platformConfigurationRegistry;
54
public Stepper() => _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
Stepper
>>(() => new PlatformConfigurationRegistry<
Stepper
>(this));
107
public IPlatformElementConfiguration<T,
Stepper
> On<T>() where T : IConfigPlatform => _platformConfigurationRegistry.Value.On<T>();