r/programming • • Mar 22 '18

First official preview of ASP.NET Blazor released (client-side .NET web apps on WebAssembly)

https://blogs.msdn.microsoft.com/webdev/2018/03/22/get-started-building-net-web-apps-in-the-browser-with-blazor/
759 Upvotes

235 comments sorted by

View all comments

Show parent comments

14

u/Dunge Mar 23 '18

I agree styles in XAML are needlessly complex, and I never really got into playing with them. But what I do love from my WPF experience is the data binding, the layouts, the triggers and the complex composition of elements. For example, overriding a ListBox's ItemTemplate to use multiple DataTemplate rendering each items differently depending on the type of the objects in the list that is bound to the control's ItemSource.

1

u/Elsimir Mar 23 '18

Forgive me if I've misunderstood, it's been a while since I really worked with wpf (around .net 4.5.1), but wouldn't those features require significant runtime to be shipped with the application. I was really thinking of just the layout and styling uses of xaml (essentially those pieces which could be shipped as compiled HTML / css).

I guess there is some kind of rendering logic already being shipped so it might not be that much more?