Replies: 2 comments 5 replies
-
A lot of it is inherently tied to WPF. Thr only things which aren't particularly are the Screen/Conductor stuff and the ioc container (although Screen.Parent is a UIElement, which is WPF). Actions, the window manager, the VM-first support (s:View.Model etc) are necessarily tied to WPF. I have done a cut-down version for Xamarin.Forms for a couple of work projects: you can implement the VM-first stuff pretty well, the window manager needs to be completely rethought, and actions to ICommand work but actions with events don't. Basically, a lot of what Stylet does necessarily involves working very closely with WPF, so it's not just a case of writing some cross-framework code once and it magically working everywhere: supporting a new framework means rewriting (and testing) about half of Stylet. That's not to say that can't be done of course, but I work mainly with WPF (professionally and personally), so supporting other frameworks would be a large time investment which I wouldn't benefit from. So there's been little motivation to do the work "just because". I've got my eye on MAUI - I'm interested to see how that turns out, and whether there's a need for something like Stylet. If they've designed it well, you won't need Stylet to fill in the gaps, after all! I am in the C# Discord, but I don't hang out there often and when I do it's mainly in roslyn/lowlevel, so I hadn't noticed Stylet was being mentioned, thanks! It's a shame you can't set up keyword notifications - feel free to @ me if there's something I can help with. |
Beta Was this translation helpful? Give feedback.
-
I'm having a big internal debate on whether to base any "Common" library on the MVVM toolkit, or continue to use On the one hand, the question of "Stylet or MVVM Toolkit" comes up a lot on Discord, and taking the MVVM Toolkit as a dependency would stop that conversation quite nicely. On the other hand, it means that the current Stylet wouldn't be able to depend on the new Common library, which would cause all sorts of problems. Unless we start a proliferation of Stylet.Common, Stylet.Common.MvvmToolkit, Stylet.Wpf, Stylet.Wpf.MvvmToolkit, etc... |
Beta Was this translation helpful? Give feedback.
-
Is it possible to decouple this from WPF? It'd be good to be able to create ViewModels that can be used in WPF, WinUI, Xamarin etc and keep using Stylet which I find to be the easiest MVVM framework to work with.
Also are you a member of the C# discord server? Lots of talk about MVVM and Stylet happening there. https://discord.gg/csharp
Beta Was this translation helpful? Give feedback.
All reactions