Skip to content

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

View source

Summary: Binds the validation.

Type parameters

NameDescription
TViewModelThe type of the view model.
TViewThe type of the view.
TVPropThe type of the v property.
TTypeThe type of the type.

Parameters

NameTypeDescription
viewTViewThe view.
viewModelTViewModelThe view model.
viewModelPropertySelectorExpression>The view model property selector.
frameworkElementSelectorExpression>The framework element selector.

Returns: IReactiveBinding -- An instance of IDisposable that, when disposed, disconnects the binding.