Class AbstractUnboundInkCanvasControlBindingModel<TView, TViewModel, TControl>
A class that contains Viewmodel bindings for the InkCanvas control.
public abstract class AbstractUnboundInkCanvasControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : InkCanvas
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundInkCanvasControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundInkCanvasControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundInkCanvasControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundInkCanvasControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
ActiveEditingMode
Gets or sets the binding logic for ActiveEditingMode
public IOneWayBind<TViewModel, InkCanvasEditingMode>? ActiveEditingMode { get; init; }
Property Value
- IOneWayBind<TViewModel, InkCanvasEditingMode>
Background
Gets or sets the binding logic for Background
public IOneOrTwoWayBind<TViewModel, Brush>? Background { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, Brush>
Children
Gets or sets the binding logic for Children
public IOneWayBind<TViewModel, UIElementCollection>? Children { get; init; }
Property Value
- IOneWayBind<TViewModel, UIElementCollection>
DefaultDrawingAttributes
Gets or sets the binding logic for DefaultDrawingAttributes
public IOneOrTwoWayBind<TViewModel, DrawingAttributes>? DefaultDrawingAttributes { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, DrawingAttributes>
DefaultStylusPointDescription
Gets or sets the binding logic for DefaultStylusPointDescription
public IOneOrTwoWayBind<TViewModel, StylusPointDescription>? DefaultStylusPointDescription { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, StylusPointDescription>
EditingMode
Gets or sets the binding logic for EditingMode
public IOneOrTwoWayBind<TViewModel, InkCanvasEditingMode>? EditingMode { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, InkCanvasEditingMode>
EditingModeInverted
Gets or sets the binding logic for EditingModeInverted
public IOneOrTwoWayBind<TViewModel, InkCanvasEditingMode>? EditingModeInverted { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, InkCanvasEditingMode>
EraserShape
Gets or sets the binding logic for EraserShape
public IOneOrTwoWayBind<TViewModel, StylusShape>? EraserShape { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, StylusShape>
IsGestureRecognizerAvailable
Gets or sets the binding logic for IsGestureRecognizerAvailable
public IOneWayBind<TViewModel, bool>? IsGestureRecognizerAvailable { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
MoveEnabled
Gets or sets the binding logic for MoveEnabled
public IOneOrTwoWayBind<TViewModel, bool>? MoveEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
PreferredPasteFormats
Gets or sets the binding logic for PreferredPasteFormats
public IOneOrTwoWayBind<TViewModel, IEnumerable<InkCanvasClipboardFormat>>? PreferredPasteFormats { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IEnumerable<InkCanvasClipboardFormat>>
ResizeEnabled
Gets or sets the binding logic for ResizeEnabled
public IOneOrTwoWayBind<TViewModel, bool>? ResizeEnabled { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, bool>
Strokes
Gets or sets the binding logic for Strokes
public IOneOrTwoWayBind<TViewModel, StrokeCollection>? Strokes { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, StrokeCollection>
UseCustomCursor
Gets or sets the binding logic for UseCustomCursor
public IOneOrTwoWayBind<TViewModel, bool>? UseCustomCursor { 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
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.