ReactiveUI.Validation icon indicating copy to clipboard operation
ReactiveUI.Validation copied to clipboard

WPF ValidationRule is not working when call ShowDialog

Open leeveel opened this issue 4 years ago • 3 comments

platform: .net wpf version: ReactiveUI.WPF 13.2.2, Validation 2.1.1

Describe the bug xxxWindow win = new xxxxWindow(); -----> inherit from ReactiveValidationObject win.ShowDialog(); ---->ValidationRule is not working win.Show(); ------> It's ok

leeveel avatar Mar 11 '21 16:03 leeveel

Looks like that INotifyDataErrorInfo Support does not work even if show dialog by calling Show method.

Additional info: Two-way binding via XAML also does not work in that case.

BekAllaev avatar May 27 '21 11:05 BekAllaev

Any repro code or details? Everything is working for me. This is implemented via ReactiveValidationObject and using INotifyDataErrorInfo for WPF and calls ShowDialog(). Make sure you using it via xaml binding, not the BindValidation. Also try to use base(Scheduler.Immediate)

xxxWindow win = new xxxxWindow(); -----> inherit from ReactiveValidationObject

This ReactiveValidationObject kinda should be in the ViewModel not the View.

img ReactiveUI.Validation: 2.1.1 ReactiveUI: 14.1.1

ScarletKuro avatar Oct 01 '21 20:10 ScarletKuro