Class AbstractUnboundPickerControlBindingModel<TView, TViewModel, TControl>
- Assembly
- Whipstaff.Maui.dll
A class that contains Viewmodel bindings for the Picker control.
public abstract class AbstractUnboundPickerControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Picker
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundNavigableElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundVisualElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundViewControlBindingModel<TView, TViewModel, TControl>AbstractUnboundPickerControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundPickerControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundPickerControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundPickerControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
CharacterSpacing
Gets or sets the binding logic for CharacterSpacing
public IOneOrTwoWayBind<TViewModel, double>? CharacterSpacing { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
FontAttributes
Gets or sets the binding logic for FontAttributes
public IOneOrTwoWayBind<TViewModel, FontAttributes>? FontAttributes { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, FontAttributes>
FontAutoScalingEnabled
Gets or sets the binding logic for FontAutoScalingEnabled
public IOneOrTwoWayBind<TViewModel, bool>? FontAutoScalingEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
FontFamily
Gets or sets the binding logic for FontFamily
public IOneOrTwoWayBind<TViewModel, string>? FontFamily { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
FontSize
Gets or sets the binding logic for FontSize
public IOneOrTwoWayBind<TViewModel, double>? FontSize { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
HorizontalTextAlignment
Gets or sets the binding logic for HorizontalTextAlignment
public IOneOrTwoWayBind<TViewModel, TextAlignment>? HorizontalTextAlignment { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, TextAlignment>
ItemDisplayBinding
Gets or sets the binding logic for ItemDisplayBinding
public IOneOrTwoWayBind<TViewModel, BindingBase>? ItemDisplayBinding { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, BindingBase>
Items
Gets or sets the binding logic for Items
public IOneWayBind<TViewModel, IList<string>>? Items { get; init; }
Property Value
- IOneWayBind<TViewModel, IList<string>>
ItemsSource
Gets or sets the binding logic for ItemsSource
public IOneOrTwoWayBind<TViewModel, IList>? ItemsSource { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IList>
SelectedIndex
Gets or sets the binding logic for SelectedIndex
public IOneOrTwoWayBind<TViewModel, int>? SelectedIndex { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
SelectedItem
Gets or sets the binding logic for SelectedItem
public IOneOrTwoWayBind<TViewModel, object>? SelectedItem { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, object>
TextColor
Gets or sets the binding logic for TextColor
public IOneOrTwoWayBind<TViewModel, Color>? TextColor { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Color>
Title
Gets or sets the binding logic for Title
public IOneOrTwoWayBind<TViewModel, string>? Title { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
TitleColor
Gets or sets the binding logic for TitleColor
public IOneOrTwoWayBind<TViewModel, Color>? TitleColor { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Color>
VerticalTextAlignment
Gets or sets the binding logic for VerticalTextAlignment
public IOneOrTwoWayBind<TViewModel, TextAlignment>? VerticalTextAlignment { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, TextAlignment>
Methods
ApplyBindings(TView, TViewModel, Action<IDisposable>)
Applies the binding between the view and the view model.
public override void ApplyBindings(TView view, TViewModel viewModel, Action<IDisposable> registerForDisposalAction)
Parameters
viewTViewThe view.
viewModelTViewModelThe viewmodel.
registerForDisposalActionAction<IDisposable>
ApplyBindings(TView, TViewModel, CompositeDisposable)
Applies the binding between the view and the view model.
public override void ApplyBindings(TView view, TViewModel viewModel, CompositeDisposable compositeDisposable)
Parameters
viewTViewThe view.
viewModelTViewModelThe viewmodel.
compositeDisposableCompositeDisposableThe disposable container to register disposals against.