>
Defined in Type: ValidationBindingMixins
Namespace: ReactiveUI
Assembly: ReactiveUI.Wpf.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net462, net481
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
Summary: Binds the validation.
Type parameters
| Name | Description |
|---|---|
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. |
Parameters
| Name | Type | Description |
|---|---|---|
view | TView | The view. |
viewModel | TViewModel | The view model. |
viewModelPropertySelector | Expression | The view model property selector. |
frameworkElementSelector | Expression | The framework element selector. |
Returns: IReactiveBinding