23 references to Stepper
Microsoft.Maui.Controls (23)
Hosting\AppHostBuilderExtensions.cs (2)
83
handlersCollection.AddHandler<
Stepper
, StepperHandler>();
260
Stepper
.RemapForControls();
Stepper\Stepper.cs (20)
11
public partial class Stepper : View, IElementConfiguration<
Stepper
>, IStepper
14
public static readonly BindableProperty MaximumProperty = BindableProperty.Create(nameof(Maximum), typeof(double), typeof(
Stepper
), 100.0,
15
validateValue: (bindable, value) => (double)value > ((
Stepper
)bindable).Minimum,
18
var
stepper = (
Stepper
)bindable;
24
public static readonly BindableProperty MinimumProperty = BindableProperty.Create(nameof(Minimum), typeof(double), typeof(
Stepper
), 0.0,
25
validateValue: (bindable, value) => (double)value < ((
Stepper
)bindable).Maximum,
28
var
stepper = (
Stepper
)bindable;
34
public static readonly BindableProperty ValueProperty = BindableProperty.Create(nameof(Value), typeof(double), typeof(
Stepper
), 0.0, BindingMode.TwoWay,
37
var
stepper = (
Stepper
)bindable;
42
var
stepper = (
Stepper
)bindable;
50
public static readonly BindableProperty IncrementProperty = BindableProperty.Create(nameof(Increment), typeof(double), typeof(
Stepper
), 1.0,
51
propertyChanged: (b, o, n) => { ((
Stepper
)b).digits = (int)(-Math.Log10((double)n) + 4).Clamp(1, 15); });
53
readonly Lazy<PlatformConfigurationRegistry<
Stepper
>> _platformConfigurationRegistry;
56
public Stepper() => _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<
Stepper
>>(() => new PlatformConfigurationRegistry<
Stepper
>(this));
109
public IPlatformElementConfiguration<T,
Stepper
> On<T>() where T : IConfigPlatform => _platformConfigurationRegistry.Value.On<T>();
Stepper\Stepper.Mapper.cs (1)
8
StepperHandler.Mapper.AppendToMapping(nameof(
Stepper
.Increment), MapInterval);