Tyson Williams
Tyson Williams
> Are you able and willing to investigate that? Definitely willing. I will find the time, but not right away.
#295 is essentially a duplicate. It started off as a place to share example uses of `mapModel` and `mapMsgWithModel` and now has been tracking some progress on this issue.
I updated the initial comment in this issue. I think it is now rather accurate.
Hello @ChernayaKoshka. Giving you a quick reply here to say that I will eventually take a detailed look at everything you have shared but I don't know right now when...
Except, don't work on this yet, but this work might depend on #424 and transitively on #362.
> I am trying to implement a copy and paste feature and I am relying on the `Clipboard` to save and restore copied data (this allows cross-instances copy/paste and also...
Interestingly, `cmdParamIf` works because it always returns `Some cmd` in this code. https://github.com/elmish/Elmish.WPF/blob/04dc145cdd2923c7625338a440f886261c927341/src/Elmish.WPF/ViewModel.fs#L703-L708 The use case for a `cmdParamIf` binding is similar to your use case: the button could be...
On a related note, I have already been looking at https://github.com/elmish/Elmish.WPF/blob/04dc145cdd2923c7625338a440f886261c927341/src/Elmish.WPF/ViewModel.fs#L776-L790 and wanting to better separate the pure part of deciding what to update and the impure part of actually...
A view model for a WPF command must implement the [ICommand](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand) interface, which has [two methods](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand#methods) 1. [CanExecute](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand.canexecute#System_Windows_Input_ICommand_CanExecute_System_Object_) and 2. [Execute](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand.execute#System_Windows_Input_ICommand_Execute_System_Object_) and one [event](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand#events) 1. [`CanExecuteChanged`](https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.icommand.canexecutechanged). Elmish.WPF implements that interface...
> > It is reasonable to consider overriding the default optimized behavior of Elmish.WPF for specific bindings. This sounds like it would fit in well with the composable binding API...