Table of Contents

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

BindableProperty

HighValueColorProperty

Bindable property for the HighValueColor property.

public static readonly BindableProperty HighValueColorProperty

Field Value

BindableProperty

InnerBackgroundColorProperty

Bindable property for the InnerBackgroundColor property.

public static readonly BindableProperty InnerBackgroundColorProperty

Field Value

BindableProperty

InnerShadowColorProperty

Bindable property for the InnerShadowColor property.

public static readonly BindableProperty InnerShadowColorProperty

Field Value

BindableProperty

LowValueColorProperty

Bindable property for the LowValueColor property.

public static readonly BindableProperty LowValueColorProperty

Field Value

BindableProperty

MarkerGapProperty

Bindable property for the MarkerGap property.

public static readonly BindableProperty MarkerGapProperty

Field Value

BindableProperty

MarkerSizeProperty

Bindable property for the MarkerSize property.

public static readonly BindableProperty MarkerSizeProperty

Field Value

BindableProperty

MarkerWidthProperty

Bindable property for the MarkerWidth property.

public static readonly BindableProperty MarkerWidthProperty

Field Value

BindableProperty

MarkersColorProperty

Bindable property for the MarkersColor property.

public static readonly BindableProperty MarkersColorProperty

Field Value

BindableProperty

MaximumDurationProperty

Bindable property for the MaximumDuration property.

public static readonly BindableProperty MaximumDurationProperty

Field Value

BindableProperty

OuterBackgroundColorProperty

Bindable property for the OuterBackgroundColor property.

public static readonly BindableProperty OuterBackgroundColorProperty

Field Value

BindableProperty

ValueWidthProperty

Bindable property for the ValueWidth property.

public static readonly BindableProperty ValueWidthProperty

Field Value

BindableProperty

WholeDurationProperty

Bindable property for the WholeDuration property.

public static readonly BindableProperty WholeDurationProperty

Field Value

BindableProperty

Properties

Duration

Gets or sets the selected duration. A value of TimeSpan.Zero indicates no duration.

public TimeSpan? Duration { get; set; }

Property Value

TimeSpan?

HighValueColor

Gets or sets the color for high values.

public Color HighValueColor { get; set; }

Property Value

Color

InnerBackgroundColor

Gets or sets the inner background color.

public Color InnerBackgroundColor { get; set; }

Property Value

Color

InnerShadowColor

Gets or sets the color of the inner shadow.

public Color InnerShadowColor { get; set; }

Property Value

Color

LowValueColor

Gets or sets the color for low values.

public Color LowValueColor { get; set; }

Property Value

Color

MarkerGap

Gets or sets the gap between markers.

public float MarkerGap { get; set; }

Property Value

float

MarkerSize

Gets or sets the size of the markers.

public float MarkerSize { get; set; }

Property Value

float

MarkerWidth

Gets or sets the width of the markers.

public float MarkerWidth { get; set; }

Property Value

float

MarkersColor

Gets or sets the color of the markers.

public Color MarkersColor { get; set; }

Property Value

Color

MaximumDuration

Gets or sets the maximum allowed duration. If null, no limit is applied.

public TimeSpan? MaximumDuration { get; set; }

Property Value

TimeSpan?

OuterBackgroundColor

Gets or sets the outer background color.

public Color OuterBackgroundColor { get; set; }

Property Value

Color

ValueWidth

Gets or sets the width of the value.

public float ValueWidth { get; set; }

Property Value

float

WholeDuration

Gets or sets the time span corresponding to a full 360° rotation.

public TimeSpan WholeDuration { get; set; }

Property Value

TimeSpan

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

widthConstraint double

The width constraint to request.

heightConstraint double

The 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

e SKPaintSurfaceEventArgs

OnTouchMoved(TouchEventArgs)

Invoked when the pointer/tap moves.

protected override void OnTouchMoved(TouchEventArgs args)

Parameters

args TouchEventArgs

OnTouchPressed(TouchEventArgs)

Invoked when the pointer/tap is pressed.

protected override void OnTouchPressed(TouchEventArgs args)

Parameters

args TouchEventArgs

OnTouchReleased(TouchEventArgs)

Invoked when the pointer/tap is released.

protected override void OnTouchReleased(TouchEventArgs args)

Parameters

args TouchEventArgs

Events

RotationEnded

Triggered when the user has finished rotating the wheel.

public event EventHandler? RotationEnded

Event Type

EventHandler

RotationStarted

Triggered when the user has started rotating the wheel.

public event EventHandler? RotationStarted

Event Type

EventHandler