Exemple #1
0
 private static void PropagateDirtyStyleSheets(VisualElement element)
 {
     if (element != null)
     {
         if (element.styleSheets != null)
         {
             element.LoadStyleSheetsFromPaths();
         }
         foreach (VisualElement current in element.shadow.Children())
         {
             StyleContext.PropagateDirtyStyleSheets(current);
         }
     }
 }
        private static void PropagateDirtyStyleSheets(VisualElement e)
        {
            VisualContainer visualContainer = e as VisualContainer;

            if (visualContainer != null)
            {
                if (visualContainer.styleSheets != null)
                {
                    visualContainer.LoadStyleSheetsFromPaths();
                }
                foreach (VisualElement current in visualContainer)
                {
                    StyleContext.PropagateDirtyStyleSheets(current);
                }
            }
        }
Exemple #3
0
 public void DirtyStyleSheets()
 {
     StyleContext.PropagateDirtyStyleSheets(this.m_VisualTree);
 }