DEV Community

An alternative to Xaml for WPF

Julien Amsellem on May 04, 2017

FluentWPF FluentWPF is a library which offers an alternative Xaml. Why? Reduce verbosity Provide more flexibility Improve...
Collapse
 
themulti0 profile image
Multi

This library seems very nice and useful, and I might use it in some simple projects!

Collapse
 
rosberg_guedes profile image
Rosber Guedes

Why would you use this instead of a simple XAML?

Collapse
 
julienju2pom profile image
Julien Amsellem

Hi,

The short answer is at the top of this article.
Long answer:

  • I wanted to get a way to put more advanced behavior in the UI without the hurdle of Converters and Behaviors
  • Keep MVVM pattern
  • Play with fluent API because I love it :)
  • Get rid of the xaml editor (which seems to improve with time)
  • Be able to reuse any piece of code (I know that xaml allows reusability too)
  • I'm also curious to see if there's any positive performance impact either during compilation time or runtime (but I didn't measure it yet)
  • Some people knows C# well but not xaml, so it can be easier for them to develop UI using this library
Collapse
 
jayjeckel profile image
Jay Jeckel

Nice! Anything is better than XAML. When I have to use WPF instead of WinForms, I'll definitely be giving this library a try.