Class ScrollPickerLabelContainer
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
ColorTextSelectedProperty
public static readonly BindableProperty ColorTextSelectedProperty
Field Value
Properties
ColorText
public Color ColorText { get; set; }
Property Value
ColorTextSelected
public Color ColorTextSelected { get; set; }
Property Value
IsSelected
protected bool IsSelected { get; set; }
Property Value
TextOpacity
protected float TextOpacity { get; set; }
Property Value
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
offsetRatiofloat0.0-X.X offset from selection axis, beyond 1.0 is offscreen. Normally you would change opacity accordingly to this.
isSelectedboolWhether cell is currently selected, normally you would change text color accordingly.
UpdateControl()
public void UpdateControl()