Class DurationWheel
- Namespace
- Nalu
- Assembly
- Nalu.Maui.Controls.dll
Represents a view that allows the user to select a duration by rotating a wheel.
public class DurationWheel : InteractableCanvasView, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ISKCanvasView, IView, IElement, ITransform
- Inheritance
-
DurationWheel
- Implements
- Inherited Members
Constructors
DurationWheel()
Initializes a new instance of the DurationWheel class.
public DurationWheel()
Fields
DurationProperty
Bindable property for the Duration property.
public static readonly BindableProperty DurationProperty
Field Value
HighValueColorProperty
Bindable property for the HighValueColor property.
public static readonly BindableProperty HighValueColorProperty
Field Value
InnerBackgroundColorProperty
Bindable property for the InnerBackgroundColor property.
public static readonly BindableProperty InnerBackgroundColorProperty
Field Value
InnerShadowColorProperty
Bindable property for the InnerShadowColor property.
public static readonly BindableProperty InnerShadowColorProperty
Field Value
LowValueColorProperty
Bindable property for the LowValueColor property.
public static readonly BindableProperty LowValueColorProperty
Field Value
MarkerGapProperty
Bindable property for the MarkerGap property.
public static readonly BindableProperty MarkerGapProperty
Field Value
MarkerSizeProperty
Bindable property for the MarkerSize property.
public static readonly BindableProperty MarkerSizeProperty
Field Value
MarkerWidthProperty
Bindable property for the MarkerWidth property.
public static readonly BindableProperty MarkerWidthProperty
Field Value
MarkersColorProperty
Bindable property for the MarkersColor property.
public static readonly BindableProperty MarkersColorProperty
Field Value
MaximumDurationProperty
Bindable property for the MaximumDuration property.
public static readonly BindableProperty MaximumDurationProperty
Field Value
OuterBackgroundColorProperty
Bindable property for the OuterBackgroundColor property.
public static readonly BindableProperty OuterBackgroundColorProperty
Field Value
ValueWidthProperty
Bindable property for the ValueWidth property.
public static readonly BindableProperty ValueWidthProperty
Field Value
WholeDurationProperty
Bindable property for the WholeDuration property.
public static readonly BindableProperty WholeDurationProperty
Field Value
Properties
Duration
Gets or sets the selected duration. A value of TimeSpan.Zero indicates no duration.
public TimeSpan? Duration { get; set; }
Property Value
HighValueColor
Gets or sets the color for high values.
public Color HighValueColor { get; set; }
Property Value
InnerBackgroundColor
Gets or sets the inner background color.
public Color InnerBackgroundColor { get; set; }
Property Value
InnerShadowColor
Gets or sets the color of the inner shadow.
public Color InnerShadowColor { get; set; }
Property Value
LowValueColor
Gets or sets the color for low values.
public Color LowValueColor { get; set; }
Property Value
MarkerGap
Gets or sets the gap between markers.
public float MarkerGap { get; set; }
Property Value
MarkerSize
Gets or sets the size of the markers.
public float MarkerSize { get; set; }
Property Value
MarkerWidth
Gets or sets the width of the markers.
public float MarkerWidth { get; set; }
Property Value
MarkersColor
Gets or sets the color of the markers.
public Color MarkersColor { get; set; }
Property Value
MaximumDuration
Gets or sets the maximum allowed duration. If null, no limit is applied.
public TimeSpan? MaximumDuration { get; set; }
Property Value
OuterBackgroundColor
Gets or sets the outer background color.
public Color OuterBackgroundColor { get; set; }
Property Value
ValueWidth
Gets or sets the width of the value.
public float ValueWidth { get; set; }
Property Value
WholeDuration
Gets or sets the time span corresponding to a full 360° rotation.
public TimeSpan WholeDuration { get; set; }
Property Value
Methods
MeasureOverride(double, double)
Allows subclasses to implement custom Measure logic during a controls measure pass.
protected override Size MeasureOverride(double widthConstraint, double heightConstraint)
Parameters
widthConstraintdoubleThe width constraint to request.
heightConstraintdoubleThe height constraint to request.
Returns
- Size
The requested size that an element wants in order to be displayed on the device.
OnPaintSurface(SKPaintSurfaceEventArgs)
protected override void OnPaintSurface(SKPaintSurfaceEventArgs e)
Parameters
OnTouchMoved(TouchEventArgs)
Invoked when the pointer/tap moves.
protected override void OnTouchMoved(TouchEventArgs args)
Parameters
argsTouchEventArgs
OnTouchPressed(TouchEventArgs)
Invoked when the pointer/tap is pressed.
protected override void OnTouchPressed(TouchEventArgs args)
Parameters
argsTouchEventArgs
OnTouchReleased(TouchEventArgs)
Invoked when the pointer/tap is released.
protected override void OnTouchReleased(TouchEventArgs args)
Parameters
argsTouchEventArgs
Events
RotationEnded
Triggered when the user has finished rotating the wheel.
public event EventHandler? RotationEnded
Event Type
RotationStarted
Triggered when the user has started rotating the wheel.
public event EventHandler? RotationStarted