I saw a lot of different information on this theme but nothing helped me.
- How do u think? Probably better use a simpler pattern than MVVM with OpenFileDialog?
- I have 2 functions Ok and Cancel. Each one has
(this.DialogResult = true)
or(this.DialogResult = false)
. I must make it in MVVM pattern. I am usingvalue -> (bool cls = true)
right now and bind it toDialogResult = {Binding cls}
and change this property in different functions but it doesn't work. I get some exception.
Do you know how I can solve this problem with closing OpenFileDialog
?