These are chat archives for AvaloniaUI/Avalonia

18th
Nov 2017
danwalmsley
@danwalmsley
Nov 18 2017 13:25
@kekekeks you know this static method BuildAvaloniaApp required by previewer,
could we not assume UsePlatformDetect() if it doesn't exist?
and only if people have some specific reason to add additional calls then they add the static method?
Nikita Tsukanov
@kekekeks
Nov 18 2017 13:25
"not exist"?
it's required to be there to set up proper rendering backend
danwalmsley
@danwalmsley
Nov 18 2017 13:26
i.e. if the user didn't add the method to program.cs
Nikita Tsukanov
@kekekeks
Nov 18 2017 13:26
BuildAvaloniaApp will be a part of our app template
Previewer won't work at all if someone decides to remove it
danwalmsley
@danwalmsley
Nov 18 2017 13:26
ok, but surely the avalonia host app could just do that part itself?
Nikita Tsukanov
@kekekeks
Nov 18 2017 13:27
That's generally a bad idea
Previewer needs to use exactly same setup
with all modules and customizations
danwalmsley
@danwalmsley
Nov 18 2017 13:28
I suppose once its in the template it wouldn't be a problem
Nikita Tsukanov
@kekekeks
Nov 18 2017 13:28
I refuse to make assumptions about someone's app if that someone decided to remove BuildAvaloniaApp for some weird reason
AppBuilder exists not only for windowing/rendering platforms
but also for avalonia modules
That might register stuff in our locator, modify global styles, etc
danwalmsley
@danwalmsley
Nov 18 2017 13:36
ah I see now :)