Csla.Xaml ViewModel type feels old #2612
Replies: 3 comments 3 replies
-
Here's the current WpfExample code for review https://github.com/MarimerLLC/csla/tree/main/Samples/WpfExample I think maybe my problem is that I used to focus on having absolutely zero code-behind a WPF page. With Blazor I've become accustomed to having some bits of code-behind. The existing Xaml ViewModel type is designed around commanding and directly handling UI events, while the Blazor ViewModel type is optimized to simplify those little bits of code-behind. |
Beta Was this translation helpful? Give feedback.
-
I have an entire enterprise application (115 screens) built on WPF and use the ViewModel. There's so many breaking changes with WCF and others that I'd like not to do this one. It's easy to understand, view and there's no code-behind. Can we please let this one stay? |
Beta Was this translation helpful? Give feedback.
-
I think I prefer the existing way of keeping code out of code behind although might give it a go and see how I get on with how you are suggesting. Not sure how testable code behind in WPF is? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe it is just because I haven't done a lot of Xaml for a long time, but I'm testing CSLA 6 by creating a new
WpfExample
app, and I must say that theCsla.Xaml.ViewModel<T>
type feels very old and outdated compared to the comparable type we have for Blazor.I'm seriously thinking about reworking the type to be more modern, though that'd completely break users of the existing type.
Do you use WPF? Do you like the existing type? Or do you wish it was easier to work with?
Again, it could be just that I'm not in the "Xaml mindset" anymore, and the current type is good, and it is just me 😄
Beta Was this translation helpful? Give feedback.
All reactions