Class AbstractUnboundToolBarTrayControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the ToolBarTray control.
public abstract class AbstractUnboundToolBarTrayControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : ToolBarTray
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundToolBarTrayControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundToolBarTrayControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundToolBarTrayControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundToolBarTrayControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
Background
Gets or sets the binding logic for Background
public IOneOrTwoWayBind<TViewModel, Brush>? Background { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Brush>
IsLocked
Gets or sets the binding logic for IsLocked
public IOneOrTwoWayBind<TViewModel, bool>? IsLocked { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
Orientation
Gets or sets the binding logic for Orientation
public IOneOrTwoWayBind<TViewModel, Orientation>? Orientation { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Orientation>
ToolBars
Gets or sets the binding logic for ToolBars
public IOneWayBind<TViewModel, Collection<ToolBar>>? ToolBars { get; init; }
Property Value
- IOneWayBind<TViewModel, Collection<ToolBar>>
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.