Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPF ValidationRule is not working when call ShowDialog #236

Open
leeveel opened this issue Mar 11, 2021 · 2 comments
Open

WPF ValidationRule is not working when call ShowDialog #236

leeveel opened this issue Mar 11, 2021 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@leeveel
Copy link

leeveel commented Mar 11, 2021

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 leeveel added the bug Something isn't working label Mar 11, 2021
@worldbeater worldbeater added help wanted Extra attention is needed bug Something isn't working and removed bug Something isn't working labels Apr 11, 2021
@BekAllaev
Copy link

BekAllaev commented May 27, 2021

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.

@ScarletKuro
Copy link

ScarletKuro commented Oct 1, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants