Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAML Alternatives

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.)

like image 633
Cameron MacFarland Avatar asked Jul 20 '09 23:07

Cameron MacFarland


People also ask

What is XAML similar to?

Similar to ASP.NET, XAML provides user interfaces and C# (or VB.NET) is used as code-behind language.

What is replacing WPF?

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.

Is WPF still relevant 2021?

WPF is still one of the most used app frameworks in use on Windows (right behind WinForms).

Is WPF and XAML the same?

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.


2 Answers

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.

like image 88
Oleg Mihailik Avatar answered Oct 16 '22 14:10

Oleg Mihailik


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.

like image 31
Ian Oakes Avatar answered Oct 16 '22 13:10

Ian Oakes