Exemplo n.º 1
0
 protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e)
 {
     PanelColors.Clear();
     Invalidate(invalidateChildren: false);
     if (this.ColorSchemeChanged != null)
     {
         this.ColorSchemeChanged(sender, e);
     }
 }
Exemplo n.º 2
0
        protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e)
        {
            ColorScheme colorSchema = e.ColorSchema;

            foreach (XPanderPanel xPanderPanel in XPanderPanels)
            {
                TypeDescriptor.GetProperties(xPanderPanel)["ColorScheme"]?.SetValue(xPanderPanel, colorSchema);
            }
            if (this.ColorSchemeChanged != null)
            {
                this.ColorSchemeChanged(sender, e);
            }
        }