Using Acss.Controls
Installation
Import resources and styles
Optional extensions
TemplatedControlExtension, when used, adds the :is-part pseudo-class to all controls inside the ControlTemplate.
SelectionDetailExtension will add state specific pseudo-classes for toggling selected items to all SelectingItemsControl objects.
:sel-detail-leave-smaller
:sel-detail-leave-lager
:sel-detail-enter-lager
:sel-detail-enter-lager
Define your own style library with Acss
Nlnet.Avalonia.Css.Controls defines a clean set of control templates for all of Avalonia's native controls, with friendly support for using the Acss Extended Style Library.
Best Practice
Please note that when you use Acss code, please try to put it under a path with a name specific to you, to avoid it being placed in the same directory as Acss files from other libraries when they co-exist, which can lead to file conflicts or incorrect loading.
For example, the base path of the Acss code file for the Nlnet.Avalonia.Css.Fluent library is:
"/Acss/Nlnet.Avalonia.Css.Fluent/"
Last updated
Was this helpful?