Class AbstractUnboundDocumentViewerBaseControlBindingModel<TView, TViewModel, TControl>
- Assembly
- Whipstaff.Wpf.dll
A class that contains Viewmodel bindings for the DocumentViewerBase control.
public abstract class AbstractUnboundDocumentViewerBaseControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : DocumentViewerBase
Type Parameters
TViewTViewModelTControl
- Inheritance
-
AbstractControlBindingModel<TView, TViewModel, TControl>AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>AbstractUnboundControlControlBindingModel<TView, TViewModel, TControl>AbstractUnboundDocumentViewerBaseControlBindingModel<TView, TViewModel, TControl>
- Implements
-
IControlBindingModel<TView, TViewModel>
- Derived
- Inherited Members
Constructors
AbstractUnboundDocumentViewerBaseControlBindingModel(Expression<Func<TView, TControl>>)
Initializes a new instance of the AbstractUnboundDocumentViewerBaseControlBindingModel<TView, TViewModel, TControl> class.
protected AbstractUnboundDocumentViewerBaseControlBindingModel(Expression<Func<TView, TControl>> viewExpression)
Parameters
viewExpressionExpression<Func<TView, TControl>>expression representing the control on the view to bind to.
Properties
CanGoToNextPage
Gets or sets the binding logic for CanGoToNextPage
public IOneWayBind<TViewModel, bool>? CanGoToNextPage { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
CanGoToPreviousPage
Gets or sets the binding logic for CanGoToPreviousPage
public IOneWayBind<TViewModel, bool>? CanGoToPreviousPage { get; init; }
Property Value
- IOneWayBind<TViewModel, bool>
Document
Gets or sets the binding logic for Document
public IOneOrTwoWayBind<TViewModel, IDocumentPaginatorSource>? Document { get; init; }
Property Value
- IOneOrTwoWayBind<TViewModel, IDocumentPaginatorSource>
MasterPageNumber
Gets or sets the binding logic for MasterPageNumber
public IOneWayBind<TViewModel, int>? MasterPageNumber { get; init; }
Property Value
- IOneWayBind<TViewModel, int>
PageCount
Gets or sets the binding logic for PageCount
public IOneWayBind<TViewModel, int>? PageCount { get; init; }
Property Value
- IOneWayBind<TViewModel, int>
PageViews
Gets or sets the binding logic for PageViews
public IOneWayBind<TViewModel, ReadOnlyCollection<DocumentPageView>>? PageViews { get; init; }
Property Value
- IOneWayBind<TViewModel, ReadOnlyCollection<DocumentPageView>>
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.