Code Source
Local Code Source
1. Loading by document
var loader = AcssContext.Default.GetService<IAcssLoader>();
var source1 = new FileSource("Acss/Case.acss");
loader.Load(Application.Current.Styles, source1);
// Use prefer path $"{debugRelative}Acss/Case.acss" if it is valid.
// Or use the path "Acss/Case.acss".
var source2 = new FileSource("Acss/Case.acss", $"{debugRelative}Acss/Case.acss");
loader.Load(Application.Current.Styles, source2);2. Load from folder
var loader = AcssContext.Default.GetService<IAcssLoader>();
loader.LoadCollection(this, new FileSourceCollection("Acss/"));
loader.LoadCollection(this, new FileSourceCollection("Acss/", "../../Acss/"));Embedded Code Source
1. Single Uri loading
2. Batch Load by Uri
Last updated