Table of Contents

Class AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl>

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

A class that contains Viewmodel bindings for the FrameworkElement control.

public abstract class AbstractUnboundFrameworkElementControlBindingModel<TView, TViewModel, TControl> : AbstractUnboundUIElementControlBindingModel<TView, TViewModel, TControl>, IControlBindingModel<TView, TViewModel> where TView : class, IViewFor<TViewModel> where TViewModel : class, IReactiveObject where TControl : FrameworkElement

Type Parameters

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

Constructors

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

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

Parameters

viewExpression Expression<Func<TView, TControl>>

expression representing the control on the view to bind to.

Properties

ActualHeight

Gets or sets the binding logic for ActualHeight

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

Property Value

IOneWayBind<TViewModel, double>

ActualWidth

Gets or sets the binding logic for ActualWidth

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

Property Value

IOneWayBind<TViewModel, double>

BindingGroup

Gets or sets the binding logic for BindingGroup

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

Property Value

IOneOrTwoWayBind<TViewModel, BindingGroup>

ContextMenu

Gets or sets the binding logic for ContextMenu

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

Property Value

IOneOrTwoWayBind<TViewModel, ContextMenu>

Cursor

Gets or sets the binding logic for Cursor

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

Property Value

IOneOrTwoWayBind<TViewModel, Cursor>

DataContext

Gets or sets the binding logic for DataContext

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

FlowDirection

Gets or sets the binding logic for FlowDirection

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

Property Value

IOneOrTwoWayBind<TViewModel, FlowDirection>

FocusVisualStyle

Gets or sets the binding logic for FocusVisualStyle

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

Property Value

IOneOrTwoWayBind<TViewModel, Style>

ForceCursor

Gets or sets the binding logic for ForceCursor

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Height

Gets or sets the binding logic for Height

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

HorizontalAlignment

Gets or sets the binding logic for HorizontalAlignment

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

Property Value

IOneOrTwoWayBind<TViewModel, HorizontalAlignment>

InputScope

Gets or sets the binding logic for InputScope

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

Property Value

IOneOrTwoWayBind<TViewModel, InputScope>

IsInitialized

Gets or sets the binding logic for IsInitialized

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

Property Value

IOneWayBind<TViewModel, bool>

IsLoaded

Gets or sets the binding logic for IsLoaded

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

Property Value

IOneWayBind<TViewModel, bool>

Language

Gets or sets the binding logic for Language

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

Property Value

IOneOrTwoWayBind<TViewModel, XmlLanguage>

LayoutTransform

Gets or sets the binding logic for LayoutTransform

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

Property Value

IOneOrTwoWayBind<TViewModel, Transform>

Margin

Gets or sets the binding logic for Margin

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

Property Value

IOneOrTwoWayBind<TViewModel, Thickness>

MaxHeight

Gets or sets the binding logic for MaxHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MaxWidth

Gets or sets the binding logic for MaxWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MinHeight

Gets or sets the binding logic for MinHeight

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

MinWidth

Gets or sets the binding logic for MinWidth

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

Property Value

IOneOrTwoWayBind<TViewModel, double>

Name

Gets or sets the binding logic for Name

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

Property Value

IOneOrTwoWayBind<TViewModel, string>

OverridesDefaultStyle

Gets or sets the binding logic for OverridesDefaultStyle

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

Parent

Gets or sets the binding logic for Parent

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

Property Value

IOneWayBind<TViewModel, DependencyObject>

Resources

Gets or sets the binding logic for Resources

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

Property Value

IOneOrTwoWayBind<TViewModel, ResourceDictionary>

Style

Gets or sets the binding logic for Style

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

Property Value

IOneOrTwoWayBind<TViewModel, Style>

Tag

Gets or sets the binding logic for Tag

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

TemplatedParent

Gets or sets the binding logic for TemplatedParent

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

Property Value

IOneWayBind<TViewModel, DependencyObject>

ToolTip

Gets or sets the binding logic for ToolTip

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

Property Value

IOneOrTwoWayBind<TViewModel, object>

Triggers

Gets or sets the binding logic for Triggers

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

Property Value

IOneWayBind<TViewModel, TriggerCollection>

UseLayoutRounding

Gets or sets the binding logic for UseLayoutRounding

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

Property Value

IOneOrTwoWayBind<TViewModel, bool>

VerticalAlignment

Gets or sets the binding logic for VerticalAlignment

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

Property Value

IOneOrTwoWayBind<TViewModel, VerticalAlignment>

Width

Gets or sets the binding logic for Width

public IOneOrTwoWayBind<TViewModel, double>? Width { 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.