private void OnSelectedColorChanged(ColorType type, Color? color)
        {
            switch (type)
            {
                case ColorType.Text:
                    TextColor = color == null ? null : new SolidColorBrush((Color)color);
                    break;

                case ColorType.Background:
                    BackgroundColor = color == null ? null : new SolidColorBrush((Color)color);
                    break;

                case ColorType.Border:
                    BorderColor = color == null ? null : new SolidColorBrush((Color)color);
                    break;
            }
        }
Пример #2
0
        private void OnSelectedColorChanged(ColorType type, Color?color)
        {
            switch (type)
            {
            case ColorType.Text:
                TextColor = color == null ? null : new SolidColorBrush((Color)color);
                break;

            case ColorType.Background:
                BackgroundColor = color == null ? null : new SolidColorBrush((Color)color);
                break;

            case ColorType.Border:
                BorderColor = color == null ? null : new SolidColorBrush((Color)color);
                break;
            }
        }