-
Notifications
You must be signed in to change notification settings - Fork 21
Questions #16
Comments
Hi,
But I recommend to avoid 2-way converters for several reasons:
My suggestion - define property of type Visibility on a model. Based on it you can have conditional logic in controller or define one-way data bindings that depends on a value if this property.
|
Hi,
|
Would you mind to send a PR for |
Have a look at The core change: IDialogService interface. Let me know if you need more clarifications. But that's not all I have in mind. I was not particularly happy with a way navigation I'm going to create another branch based on DialogService to show my ideas. I'll keep you posted. |
Sorry to answer only now, but I had a busy time. Thank you for your changes I will have a look at it. Cheers |
I pushed a small update to DialogService branch |
I am currently trying to create some projects using your MVC framework and it seems some of the code you are using in fsharp-wpf-mvc-series are now missing or have changed.
What is the current recommended way to use an existing converter (for example a BoolToVisibility converter)? It seems the only correct way (based on my understanding of your code) is to provide a function that acts as converter and not to use a converter class (IValueConverter).
I am also wondering how you would handle displaying a message (for example message box but I assume the behavior would be the same) at the end of an operation? For now, I am passing a method (string -> string -> unit) as an argument of my controller and I call this method when needed. Doing so I am able to keep my unit tests quite simple as I can fake my methods. But I am wondering if the problem should not be inverted, meaning that the XamlView implementation should not subscribe to a result of the controller's method to trigger the message box.
The text was updated successfully, but these errors were encountered: