WPF - CommandManager #3320
-
I'm upgrading WPF project that uses CSLA 3.6.0 to 6.2.2.
I'm trying to get the Undo command, but when I use CslaDataProvider I have to provide factory method which is not use in 6.2.2. How do I solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@CROprogrammer that's a good question. It is unlikely that we can resolve this in XAML, because there's no longer a fixed static method name like in the past. It is probably something that'll need to be done via code. I don't have time to dig into it just this second, but will look when I get time. There might already be a way to invoke a method via code (like in the form load). If not, we'll need to add something like what is in the Blazor viewmodel class for invoking code to create/fetch the domain object via the data portal. |
Beta Was this translation helpful? Give feedback.
@CROprogrammer that's a good question.
It is unlikely that we can resolve this in XAML, because there's no longer a fixed static method name like in the past. It is probably something that'll need to be done via code.
I don't have time to dig into it just this second, but will look when I get time. There might already be a way to invoke a method via code (like in the form load). If not, we'll need to add something like what is in the Blazor viewmodel class for invoking code to create/fetch the domain object via the data portal.