Table of Contents

Class AbstractUnboundPageControlBindingModel<TView, TViewModel, TControl>

Namespace
Whipstaff.Wpf.ViewToViewModelBindings.System.Windows.Controls
Assembly
Whipstaff.Wpf.dll

A class that contains Viewmodel bindings for the Page control.

public abstract class AbstractUnboundPageControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : Page

Type Parameters

TView
TViewModel
TControl
Inheritance
AbstractControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>
AbstractUnboundPageControlBindingModel<TView, TViewModel, TControl>
Implements
IControlBindingModel<TView, TViewModel>
Derived
Inherited Members

Constructors

AbstractUnboundPageControlBindingModel(Expression<Func<TView, TControl>>)

protected AbstractUnboundPageControlBindingModel(Expression<Func<TView, TControl>> viewExpression)

Parameters

viewExpression Expression<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>

Content

Gets or sets the binding logic for Content

public IOneOrTwoWayBind<TViewModel, object>? Content { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, object>

FontFamily

Gets or sets the binding logic for FontFamily

public IOneOrTwoWayBind<TViewModel, FontFamily>? FontFamily { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, FontFamily>

FontSize

Gets or sets the binding logic for FontSize

public IOneOrTwoWayBind<TViewModel, double>? FontSize { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

Foreground

Gets or sets the binding logic for Foreground

public IOneOrTwoWayBind<TViewModel, Brush>? Foreground { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, Brush>

KeepAlive

Gets or sets the binding logic for KeepAlive

public IOneOrTwoWayBind<TViewModel, bool>? KeepAlive { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, bool>

NavigationService

Gets or sets the binding logic for NavigationService

public IOneWayBind<TViewModel, NavigationService>? NavigationService { get; init; }

Property Value

IOneWayBind<TViewModel, NavigationService>

ShowsNavigationUI

Gets or sets the binding logic for ShowsNavigationUI

public IOneOrTwoWayBind<TViewModel, bool>? ShowsNavigationUI { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Template

Gets or sets the binding logic for Template

public IOneOrTwoWayBind<TViewModel, ControlTemplate>? Template { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, ControlTemplate>

Title

Gets or sets the binding logic for Title

public IOneOrTwoWayBind<TViewModel, string>? Title { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, string>

WindowHeight

Gets or sets the binding logic for WindowHeight

public IOneOrTwoWayBind<TViewModel, double>? WindowHeight { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

WindowTitle

Gets or sets the binding logic for WindowTitle

public IOneOrTwoWayBind<TViewModel, string>? WindowTitle { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, string>

WindowWidth

Gets or sets the binding logic for WindowWidth

public IOneOrTwoWayBind<TViewModel, double>? WindowWidth { get; init; }

Property Value

IOneOrTwoWayBind<TViewModel, double>

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 TView

The view.

viewModel TViewModel

The 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 TView

The view.

viewModel TViewModel

The viewmodel.

compositeDisposable CompositeDisposable

The disposable container to register disposals against.