Esempio n. 1
0
 // Token: 0x06004CF1 RID: 19697 RVA: 0x0015AE9C File Offset: 0x0015909C
 internal void OnThemeChanged()
 {
     if (this.Header != null)
     {
         DependencyObject dependencyObject = this.Header as DependencyObject;
         if (dependencyObject != null)
         {
             FrameworkElement        frameworkElement;
             FrameworkContentElement frameworkContentElement;
             Helper.DowncastToFEorFCE(dependencyObject, out frameworkElement, out frameworkContentElement, false);
             if (frameworkElement != null || frameworkContentElement != null)
             {
                 TreeWalkHelper.InvalidateOnResourcesChange(frameworkElement, frameworkContentElement, ResourcesChangeInfo.ThemeChangeInfo);
             }
         }
     }
 }
Esempio n. 2
0
        //-------------------------------------------------------------------
        //
        //  Internal Methodes
        //
        //-------------------------------------------------------------------

        #region Internal Methodes

        // Propagate theme changes to contained headers
        internal void OnThemeChanged()
        {
            if (Header != null)
            {
                DependencyObject d = Header as DependencyObject;

                if (d != null)
                {
                    FrameworkElement        fe;
                    FrameworkContentElement fce;
                    Helper.DowncastToFEorFCE(d, out fe, out fce, false);

                    if (fe != null || fce != null)
                    {
                        TreeWalkHelper.InvalidateOnResourcesChange(fe, fce, ResourcesChangeInfo.ThemeChangeInfo);
                    }
                }
            }
        }