コード例 #1
0
ファイル: SparrowChart.cs プロジェクト: KaptenJon/EcoProIT
        /// <summary>
        /// Themes the changed.
        /// </summary>
        /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        internal void ThemeChanged(DependencyPropertyChangedEventArgs args)
        {
            switch (Theme)
            {
            case Theme.Arctic:
                _brushes = Themes.ArcticBrushes();
                break;

            case Theme.Autmn:
                _brushes = Themes.AutmnBrushes();
                break;

            case Theme.Cold:
                _brushes = Themes.ColdBrushes();
                break;

            case Theme.Flower:
                _brushes = Themes.FlowerBrushes();
                break;

            case Theme.Forest:
                _brushes = Themes.ForestBrushes();
                break;

            case Theme.Grayscale:
                _brushes = Themes.GrayscaleBrushes();
                break;

            case Theme.Ground:
                _brushes = Themes.GroundBrushes();
                break;

            case Theme.Lialac:
                _brushes = Themes.LialacBrushes();
                break;

            case Theme.Natural:
                _brushes = Themes.NaturalBrushes();
                break;

            case Theme.Pastel:
                _brushes = Themes.PastelBrushes();
                break;

            case Theme.Rainbow:
                _brushes = Themes.RainbowBrushes();
                break;

            case Theme.Spring:
                _brushes = Themes.SpringBrushes();
                break;

            case Theme.Summer:
                _brushes = Themes.SummerBrushes();
                break;

            case Theme.Warm:
                _brushes = Themes.WarmBrushes();
                break;

            case Theme.Metro:
                _brushes = Themes.MetroBrushes();
                break;

            case Theme.Custom:
                break;

            default:
                break;
            }
            BrushTheme();
        }