I suggest you ...

From XAML to ZAML

What we need is a better language than XAML that is appropriate for the same task (visual tree construction, use in visual designer).

There are a lot of defects to XAML from a language point of view, such as: poor typing including lack of generics, weird syntax, poor scoping, excessive use of global variables, lack of static variables, etc.

At the same time, the basic feature of XAML -- providing a declarative syntax -- can also be accomplished in C#. Just replace, say, '<StackPanel> ... </StackPanel>' by 'new StackPanel() { ... }'. Perhaps a bit of syntactic sugar would allow us to write just 'StackPanel { ... }' in certain contexts.

Obviously it's more complicated than just that. But let's get started replacing XAML with a real language that is .NET based and has the ability to be used by the visual designer.

1 vote
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
sjb shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base