30 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);
Microsoft.Maui.Controls.Compatibility (7)
iOS\Renderers\StepperRenderer.cs (7)
11
public class StepperRenderer : ViewRenderer<
Stepper
, UIStepper>
38
protected override void OnElementChanged(ElementChangedEventArgs<
Stepper
> e)
61
if (e.PropertyName ==
Stepper
.MinimumProperty.PropertyName)
63
else if (e.PropertyName ==
Stepper
.MaximumProperty.PropertyName)
65
else if (e.PropertyName ==
Stepper
.ValueProperty.PropertyName)
67
else if (e.PropertyName ==
Stepper
.IncrementProperty.PropertyName)
74
((IElementController)Element).SetValueFromRenderer(
Stepper
.ValueProperty, Control.Value);