VincentH-Net / CSharpForMarkup

Concise, declarative C# UI markup for .NET browser / native UI frameworks
MIT License
748 stars 43 forks source link

Does this compile back to XAML in the background ? #3

Closed mrwcjoughin closed 5 years ago

mrwcjoughin commented 5 years ago

Hi,

I have a question: Does this compile back to XAML in the background ?

I currently already build my Xamarin.Forms UI's using code because of the terrible performance of using XAML it's self - so as long as this package doesn't compile back to XAML I would be very interested in trying it - especially to be able to move my only remaining XAML file left - which is for my Styles - to C#.

Thanks,

Matthew

VincentH-Net commented 5 years ago

Hi @mrwcjoughin, no worries, this does not compile to XAML. These helpers are simply extremely thin calls to set properties on objects. All is fully pre-compiled and optimized by the C# compiler, like any C# code, including all bindings. Performance is as good as it gets.

Ps I also have helpers for declarative coded styles. I'll include those with an example shortly.

mrwcjoughin commented 5 years ago

Thanks, that sounds awesome. I will definitely try it out soonest :)

VincentH-Net commented 5 years ago

You're welcome :). I just added the Style helpers + ReadMe guidance; NJoy.

mrwcjoughin commented 5 years ago

Excellent, thanks 🎉🚀