Using Acss
Installation
dotnet add package Nlnet.Avalonia.Css --version 1.0.0-beta.4Registering Acss and Type Resolution
private static AppBuilder BuildAvaloniaApp()
{
return AppBuilder.Configure<App>()
...
// Use avalonia css stuff.
.UseAcssDefaultContext()
// Type resolver for 'Your.Lib'. The GenericTypeResolver<TSink> will load all
// types those belong to the assembly who contains the T class.
.WithTypeResolverForAcssDefaultContext(new GenericTypeResolver<TSink>())
;
}Initializing AcssContext
Last updated