Table of Contents

Class ScrollPickerLabelContainer

Namespace
DrawnUi.Controls
Assembly
DrawnUi.Maui.dll
public class ScrollPickerLabelContainer : SkiaLayout, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IVisualElementController, IElementController, IView, ITransform, IElement, IVisualTreeElement, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISkiaGestureListener, IHasAfterEffects, ISkiaDisposable, ISkiaGridLayout, ISkiaLayout, ISkiaControl, IDrawnBase, ICanBeUpdatedWithContext, ICanBeUpdated, ILayoutInsideViewport, IInsideViewport, IVisibilityAware, IDisposable, IInsideWheelStack
Inheritance
ScrollPickerLabelContainer
Implements
Inherited Members
Extension Methods

Constructors

ScrollPickerLabelContainer()

public ScrollPickerLabelContainer()

Fields

ColorTextProperty

public static readonly BindableProperty ColorTextProperty

Field Value

BindableProperty

ColorTextSelectedProperty

public static readonly BindableProperty ColorTextSelectedProperty

Field Value

BindableProperty

Properties

ColorText

public Color ColorText { get; set; }

Property Value

Color

ColorTextSelected

public Color ColorTextSelected { get; set; }

Property Value

Color

IsSelected

protected bool IsSelected { get; set; }

Property Value

bool

TextOpacity

protected float TextOpacity { get; set; }

Property Value

float

Methods

OnBindingContextChanged()

First Maui will apply bindings to your controls, then it would call OnBindingContextChanged, so beware on not to break bindings.

protected override void OnBindingContextChanged()

OnPositionChanged(float, bool)

Called by parent stack inside picker wheel when position changes

public void OnPositionChanged(float offsetRatio, bool isSelected)

Parameters

offsetRatio float

0.0-X.X offset from selection axis, beyond 1.0 is offscreen. Normally you would change opacity accordingly to this.

isSelected bool

Whether cell is currently selected, normally you would change text color accordingly.

UpdateControl()

public void UpdateControl()