I love WPF, but I hate XAML.
XAML is too verbose, has syntax issues when Microsoft tried to extend it (see StringFormat on Bindings), and is difficult to navigate.
Are there any alternatives to XAML?
(These are just my opinions. Feel free to disagree.)
Similar to ASP.NET, XAML provides user interfaces and C# (or VB.NET) is used as code-behind language.
Universal Windows Platform. Both Windows Forms and WPF are old, and Microsoft is pointing developers towards its Universal Windows Platform (UWP) instead. UWP is an evolution of the new application platform introduced in Windows 8 in 2012.
WPF is still one of the most used app frameworks in use on Windows (right behind WinForms).
While XAML is used to build user interfaces in WPF, C# is used as the code-behind languages in WPF. While Windows and their controls are created in XAML at design-time, they can also be created at runtime using C# language. C# is also used to write all events programming and business logic.
There are alternatives:
XUL, Flash, Delphi resource syntax, C# Form.Designer.cs syntax, VB6 form syntax
Surely there are no compelling alternatives though.
It's like human bodies -- utter rubbish with all its juices and smells but that's by far the best life form known. XAML is clearly really really bad, but there's nothing half as good around.
XAML does seem to be the elephant in the room. While I'm a huge fan of WPF the verbosity of XAML can be a little hard on the eyes. Whilst Blend and VS2010 go long way to reducing the need for coding XAML from scratch, I still find hand editing a necessity in nearly everything I do.
I find power boots easy on the eyes and the CSS like syntax of JavaFX to be quite appealing. These seem to be the insparation for D'oh.
However verbose XAML is, at least there is tooling support to get us 90% of the way, any other alternative would take us back to hand coding all the UI. Not an attractive proposition for this coder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With