Class ValidationBindingMixins
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.Wpf.dll
ValidationBindingMixins.
- Inheritance
-
Validation
Binding Mixins
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
TViewThe 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
- IReactive
Binding <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.