Class AbstractUnboundVisualElementControlBindingModel<TView, TViewModel, TControl>
- Assembly
- Whipstaff.Maui.dll
A class that contains Viewmodel bindings for the VisualElement control.
public abstract class AbstractUnboundVisualElementControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundNavigableElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : VisualElement
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundNavigableElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundVisualElementControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundVisualElementControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundVisualElementControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundVisualElementControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
AnchorX
Gets or sets the binding logic for AnchorX
public IOneOrTwoWayBind<TViewModel, double>? AnchorX { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
AnchorY
Gets or sets the binding logic for AnchorY
public IOneOrTwoWayBind<TViewModel, double>? AnchorY { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Background
Gets or sets the binding logic for Background
public IOneOrTwoWayBind<TViewModel, Brush>? Background { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Brush>
BackgroundColor
Gets or sets the binding logic for BackgroundColor
public IOneOrTwoWayBind<TViewModel, Color>? BackgroundColor { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Color>
Batched
Gets or sets the binding logic for Batched
public IOneWayBind<TViewModel, bool>? Batched { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
Behaviors
Gets or sets the binding logic for Behaviors
public IOneWayBind<TViewModel, IList<Behavior>>? Behaviors { get; init; }
Property Value
- IOneWayBind<TViewModel, IList<Behavior>>
Bounds
Gets or sets the binding logic for Bounds
public IOneWayBind<TViewModel, Rect>? Bounds { get; init; }
Property Value
- IOneWayBind<TViewModel, Rect>
Clip
Gets or sets the binding logic for Clip
public IOneOrTwoWayBind<TViewModel, Geometry>? Clip { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Geometry>
DesiredSize
Gets or sets the binding logic for DesiredSize
public IOneOrTwoWayBind<TViewModel, Size>? DesiredSize { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Size>
DisableLayout
Gets or sets the binding logic for DisableLayout
public IOneOrTwoWayBind<TViewModel, bool>? DisableLayout { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
FlowDirection
Gets or sets the binding logic for FlowDirection
public IOneOrTwoWayBind<TViewModel, FlowDirection>? FlowDirection { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, FlowDirection>
Frame
Gets or sets the binding logic for Frame
public IOneOrTwoWayBind<TViewModel, Rect>? Frame { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Rect>
Handler
Gets or sets the binding logic for Handler
public IOneOrTwoWayBind<TViewModel, IViewHandler>? Handler { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IViewHandler>
Height
Gets or sets the binding logic for Height
public IOneWayBind<TViewModel, double>? Height { get; init; }
Property Value
- IOneWayBind<TViewModel, double>
HeightRequest
Gets or sets the binding logic for HeightRequest
public IOneOrTwoWayBind<TViewModel, double>? HeightRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
InputTransparent
Gets or sets the binding logic for InputTransparent
public IOneOrTwoWayBind<TViewModel, bool>? InputTransparent { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsEnabled
Gets or sets the binding logic for IsEnabled
public IOneOrTwoWayBind<TViewModel, bool>? IsEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsFocused
Gets or sets the binding logic for IsFocused
public IOneWayBind<TViewModel, bool>? IsFocused { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
IsInPlatformLayout
Gets or sets the binding logic for IsInPlatformLayout
public IOneOrTwoWayBind<TViewModel, bool>? IsInPlatformLayout { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsLoaded
Gets or sets the binding logic for IsLoaded
public IOneWayBind<TViewModel, bool>? IsLoaded { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
IsPlatformEnabled
Gets or sets the binding logic for IsPlatformEnabled
public IOneOrTwoWayBind<TViewModel, bool>? IsPlatformEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsPlatformStateConsistent
Gets or sets the binding logic for IsPlatformStateConsistent
public IOneOrTwoWayBind<TViewModel, bool>? IsPlatformStateConsistent { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsVisible
Gets or sets the binding logic for IsVisible
public IOneOrTwoWayBind<TViewModel, bool>? IsVisible { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
MaximumHeightRequest
Gets or sets the binding logic for MaximumHeightRequest
public IOneOrTwoWayBind<TViewModel, double>? MaximumHeightRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
MaximumWidthRequest
Gets or sets the binding logic for MaximumWidthRequest
public IOneOrTwoWayBind<TViewModel, double>? MaximumWidthRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
MinimumHeightRequest
Gets or sets the binding logic for MinimumHeightRequest
public IOneOrTwoWayBind<TViewModel, double>? MinimumHeightRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
MinimumWidthRequest
Gets or sets the binding logic for MinimumWidthRequest
public IOneOrTwoWayBind<TViewModel, double>? MinimumWidthRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Opacity
Gets or sets the binding logic for Opacity
public IOneOrTwoWayBind<TViewModel, double>? Opacity { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Resources
Gets or sets the binding logic for Resources
public IOneOrTwoWayBind<TViewModel, ResourceDictionary>? Resources { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ResourceDictionary>
Rotation
Gets or sets the binding logic for Rotation
public IOneOrTwoWayBind<TViewModel, double>? Rotation { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
RotationX
Gets or sets the binding logic for RotationX
public IOneOrTwoWayBind<TViewModel, double>? RotationX { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
RotationY
Gets or sets the binding logic for RotationY
public IOneOrTwoWayBind<TViewModel, double>? RotationY { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Scale
Gets or sets the binding logic for Scale
public IOneOrTwoWayBind<TViewModel, double>? Scale { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
ScaleX
Gets or sets the binding logic for ScaleX
public IOneOrTwoWayBind<TViewModel, double>? ScaleX { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
ScaleY
Gets or sets the binding logic for ScaleY
public IOneOrTwoWayBind<TViewModel, double>? ScaleY { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Shadow
Gets or sets the binding logic for Shadow
public IOneOrTwoWayBind<TViewModel, Shadow>? Shadow { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Shadow>
TranslationX
Gets or sets the binding logic for TranslationX
public IOneOrTwoWayBind<TViewModel, double>? TranslationX { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
TranslationY
Gets or sets the binding logic for TranslationY
public IOneOrTwoWayBind<TViewModel, double>? TranslationY { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Triggers
Gets or sets the binding logic for Triggers
public IOneWayBind<TViewModel, IList<TriggerBase>>? Triggers { get; init; }
Property Value
- IOneWayBind<TViewModel, IList<TriggerBase>>
Visual
Gets or sets the binding logic for Visual
public IOneOrTwoWayBind<TViewModel, IVisual>? Visual { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IVisual>
Width
Gets or sets the binding logic for Width
public IOneWayBind<TViewModel, double>? Width { get; init; }
Property Value
- IOneWayBind<TViewModel, double>
WidthRequest
Gets or sets the binding logic for WidthRequest
public IOneOrTwoWayBind<TViewModel, double>? WidthRequest { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, double>
Window
Gets or sets the binding logic for Window
public IOneWayBind<TViewModel, Window>? Window { get; init; }
Property Value
- IOneWayBind<TViewModel, Window>
X
Gets or sets the binding logic for X
public IOneWayBind<TViewModel, double>? X { get; init; }
Property Value
- IOneWayBind<TViewModel, double>
Y
Gets or sets the binding logic for Y
public IOneWayBind<TViewModel, double>? Y { get; init; }
Property Value
- IOneWayBind<TViewModel, double>
ZIndex
Gets or sets the binding logic for ZIndex
public IOneOrTwoWayBind<TViewModel, int>? ZIndex { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, int>
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.