Class AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the MenuItem control.
public abstract class AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundHeaderedItemsControlControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : MenuItem
Type Parameters
TView
TViewModel
TControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundItemsControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundHeaderedItemsControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundMenuItemControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundMenuItemControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundMenuItemControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpression
Expression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
BindCommand
Gets or sets the command binding logic for MenuItem
public ICommandBinding<TViewModel>? BindCommand { get; init; }
Property Value
- ICommandBinding<TViewModel>
Command
Gets or sets the binding logic for Command
public IOneOrTwoWayBind<TViewModel, ICommand>? Command { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ICommand>
CommandParameter
Gets or sets the binding logic for CommandParameter
public IOneOrTwoWayBind<TViewModel, object>? CommandParameter { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, object>
CommandTarget
Gets or sets the binding logic for CommandTarget
public IOneOrTwoWayBind<TViewModel, IInputElement>? CommandTarget { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IInputElement>
Icon
Gets or sets the binding logic for Icon
public IOneOrTwoWayBind<TViewModel, object>? Icon { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, object>
InputGestureText
Gets or sets the binding logic for InputGestureText
public IOneOrTwoWayBind<TViewModel, string>? InputGestureText { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, string>
IsCheckable
Gets or sets the binding logic for IsCheckable
public IOneOrTwoWayBind<TViewModel, bool>? IsCheckable { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsChecked
Gets or sets the binding logic for IsChecked
public IOneOrTwoWayBind<TViewModel, bool>? IsChecked { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsHighlighted
Gets or sets the binding logic for IsHighlighted
public IOneOrTwoWayBind<TViewModel, bool>? IsHighlighted { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsPressed
Gets or sets the binding logic for IsPressed
public IOneOrTwoWayBind<TViewModel, bool>? IsPressed { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsSubmenuOpen
Gets or sets the binding logic for IsSubmenuOpen
public IOneOrTwoWayBind<TViewModel, bool>? IsSubmenuOpen { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
IsSuspendingPopupAnimation
Gets or sets the binding logic for IsSuspendingPopupAnimation
public IOneWayBind<TViewModel, bool>? IsSuspendingPopupAnimation { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
ItemContainerTemplateSelector
Gets or sets the binding logic for ItemContainerTemplateSelector
public IOneOrTwoWayBind<TViewModel, ItemContainerTemplateSelector>? ItemContainerTemplateSelector { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, ItemContainerTemplateSelector>
Role
Gets or sets the binding logic for Role
public IOneWayBind<TViewModel, MenuItemRole>? Role { get; init; }
Property Value
- IOneWayBind<TViewModel, MenuItemRole>
SeparatorStyleKey
Gets or sets the binding logic for SeparatorStyleKey
public IOneWayBind<TViewModel, ResourceKey>? SeparatorStyleKey { get; init; }
Property Value
- IOneWayBind<TViewModel, ResourceKey>
StaysOpenOnClick
Gets or sets the binding logic for StaysOpenOnClick
public IOneOrTwoWayBind<TViewModel, bool>? StaysOpenOnClick { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
SubmenuHeaderTemplateKey
Gets or sets the binding logic for SubmenuHeaderTemplateKey
public IOneWayBind<TViewModel, ResourceKey>? SubmenuHeaderTemplateKey { get; init; }
Property Value
- IOneWayBind<TViewModel, ResourceKey>
SubmenuItemTemplateKey
Gets or sets the binding logic for SubmenuItemTemplateKey
public IOneWayBind<TViewModel, ResourceKey>? SubmenuItemTemplateKey { get; init; }
Property Value
- IOneWayBind<TViewModel, ResourceKey>
TopLevelHeaderTemplateKey
Gets or sets the binding logic for TopLevelHeaderTemplateKey
public IOneWayBind<TViewModel, ResourceKey>? TopLevelHeaderTemplateKey { get; init; }
Property Value
- IOneWayBind<TViewModel, ResourceKey>
TopLevelItemTemplateKey
Gets or sets the binding logic for TopLevelItemTemplateKey
public IOneWayBind<TViewModel, ResourceKey>? TopLevelItemTemplateKey { get; init; }
Property Value
- IOneWayBind<TViewModel, ResourceKey>
UsesItemContainerTemplate
Gets or sets the binding logic for UsesItemContainerTemplate
public IOneOrTwoWayBind<TViewModel, bool>? UsesItemContainerTemplate { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
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
view
TViewThe view.
viewModel
TViewModelThe viewmodel.
registerForDisposalAction
Action<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
view
TViewThe view.
viewModel
TViewModelThe viewmodel.
compositeDisposable
CompositeDisposableThe disposable container to register disposals against.