Beispiel #1
0
        /// <summary>
        /// Called when [color property changed].
        /// </summary>
        /// <param name="d">The d.</param>
        /// <param name="e">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
        private static void OnColorPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PlanetControl b = d as PlanetControl;

            if (b == null)
            {
                return;
            }

            var color = (int)e.NewValue;

            b.elBack.Fill = Settings.AvailableColors[color];
        }