Replies: 1 comment 4 replies
-
I'll be following this discussion with interest; I discussed this in a call with @nmetulev in December; maybe he can chime in? The idea aligns with my general plans for C# Markup 2 as I shared them on Twitter a few weeks ago:
If C# Markup support for the Windows Community Toolkit is realized, the effort will carry over to Uno Platform as well (@jeromelaban may have some thoughts about that) PS C# Markup 2 leverages C# 10 features - which means .NET 6 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As a developer with previous experience using WPF, but who has in the intervening years used a variety of other UI frameworks, I was excited to hear about the
CommunityToolkit/Maui.Markup
project, which allows for declarative, C#-based UI definition, with minimal need for XAML.As demonstrated by frameworks such as React, Flutter, Qt Quick, Jetpack Compose, SwiftUI and many others, I think there is plenty of demand for, or at least a broad developer base that is familiar with, using a programming language to declaratively define the UI. Meanwhile. some might see XML-based UI definition as outdated or clunky in comparison. I posit that offering a well-thought-out, well-supported, C#-based alternative to XAML could convince a wider range of developers to give WinUI a go.
I looked around to see if something like this is planned for WinUI 3, and found the project
VincentH-Net/CSharpForMarkup
, the previous version of which apparently formed the basis forMaui.Markup
. To my eyes and mind, the UI code examples using that library are more compact and easier to read than the equivalent in XAML, not to mention needing only one language instead of two. For me, it seemed like my cognitive load was lightened and my comfort level increased. However, as mentioned here, the Windows Community Toolkit is currently not supported and additional work is needed to do so.I would like to open up a discussion about the possibility of either assisting @VincentH-Net in his efforts to support WCT, or of adding/integrating this feature into the Windows Community Toolkit, similarly to what has been done with
Maui.Markup
.Thanks for listening; I look forward to the discussion. 🙂
Beta Was this translation helpful? Give feedback.
All reactions