2 instantiations of StyleSheet
Microsoft.Maui.Controls (2)
StyleSheets\StyleSheet.cs (2)
28 var styleSheet = new StyleSheet(); 53 var sheet = new StyleSheet();
18 references to StyleSheet
Microsoft.Maui.Controls (14)
Element\Element_StyleSheets.cs (3)
48 var sheets = new List<StyleSheet>(); 62 void ApplyStyleSheets(List<StyleSheet> sheets, IVisualTreeElement element) 78 mergedSheets = new List<StyleSheet>(childSheets);
ResourceDictionary.cs (3)
95 internal IList<StyleSheets.StyleSheet> StyleSheets { get; set; } 365 public void Add(StyleSheets.StyleSheet styleSheet) 367 StyleSheets = StyleSheets ?? new List<StyleSheets.StyleSheet>(2);
StyleSheets\StyleSheet.cs (6)
26 public static StyleSheet FromResource(string resourcePath, Assembly assembly, IXmlLineInfo lineInfo = null) 28 var styleSheet = new StyleSheet(); 39 public static StyleSheet FromString(string stylesheet) 48 public static StyleSheet FromReader(TextReader reader) 53 var sheet = new StyleSheet(); 60 static void Parse(StyleSheet sheet, CssReader reader)
StyleSheets\StyleSheetExtensions.cs (2)
8 public static IEnumerable<StyleSheet> GetStyleSheets(this IResourcesProvider resourcesProvider) 14 foreach (var styleSheet in resourcesProvider.Resources.StyleSheets)
Microsoft.Maui.Controls.Xaml (4)
ApplyPropertiesVisitor.cs (2)
775 else if (value is StyleSheets.StyleSheet) 776 resourceDictionary.Add((StyleSheets.StyleSheet)value);
MarkupExtensions\StyleSheetExtension.cs (2)
39 return StyleSheet.FromResource(resourcePath, assembly, lineInfo); 45 return StyleSheet.FromReader(reader);