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; } }
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; } }