Table of Contents

Class ValidationBindingMixins

Namespace
ReactiveUI
Assembly
ReactiveUI.Wpf.dll

ValidationBindingMixins.

public static class ValidationBindingMixins
Inheritance
ValidationBindingMixins

Methods

BindWithValidation<TViewModel, TView, TVProp, TType>(TView, TViewModel, Expression<Func<TViewModel, TType?>>, Expression<Func<TView, TVProp>>)

Binds the validation.

public static IReactiveBinding<TView, TType> BindWithValidation<TViewModel, TView, TVProp, TType>(this TView view, TViewModel viewModel, Expression<Func<TViewModel, TType?>> viewModelPropertySelector, Expression<Func<TView, TVProp>> frameworkElementSelector) where TViewModel : class where TView : class, IViewFor

Parameters

view TView

The view.

viewModel TViewModel

The view model.

viewModelPropertySelector Expression<Func<TViewModel, TType>>

The view model property selector.

frameworkElementSelector Expression<Func<TView, TVProp>>

The framework element selector.

Returns

IReactiveBinding<TView, TType>

An instance of IDisposable that, when disposed, disconnects the binding.

Type Parameters

TViewModel

The type of the view model.

TView

The type of the view.

TVProp

The type of the v property.

TType

The type of the type.