dotnet / MobileBlazorBindings

Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
MIT License
1.2k stars 168 forks source link

How to include scoped CSS from razor class library? #384

Closed GermanGolota closed 3 years ago

GermanGolota commented 3 years ago

Hi, I would like to include razor class library, that uses scoped css. Is there any way to support that?

Eilon commented 3 years ago

Hi @GermanGolota I think that isn't supported right now in Mobile Blazor Bindings due to some limitations of how static web assets work. However, we are releasing the official BlazorWebView control for .NET MAUI, WPF, and WinForms, as part of the .NET 6 release, and there we will have full support for scoped CSS (though there are some bugs with it right now).