namespace OINA.Extender.WPF.Testharness
{
using System.Windows;
using System.Windows.Media;
using OINA.Extender.Controls.Styles;
///
/// Interaction logic for ElementComboVisualSettings.xaml
///
public partial class BCDialogVisualSettings
{
///
/// Gets or sets the header font color
///
public Color HeaderFontColor
{
get { return BrightnessContrastDialogStyle.HeaderFontColor; }
set { BrightnessContrastDialogStyle.HeaderFontColor = value; }
}
///
/// Gets or sets the header font size
///
public double HeaderFontSize
{
get { return BrightnessContrastDialogStyle.HeaderFontSize; }
set { BrightnessContrastDialogStyle.HeaderFontSize = value; }
}
///
/// Gets or sets the header font family
///
public FontFamily HeaderFontFamily
{
get { return BrightnessContrastDialogStyle.HeaderFontFamily; }
set { BrightnessContrastDialogStyle.HeaderFontFamily = value; }
}
///
/// Gets or sets the header font style
///
public FontStyle HeaderFontStyle
{
get { return BrightnessContrastDialogStyle.HeaderFontStyle; }
set { BrightnessContrastDialogStyle.HeaderFontStyle = value; }
}
///
/// Gets or sets the color of the generic control background.
///
public Color GenericControlBackgroundColor
{
get { return BrightnessContrastDialogStyle.GenericControlBackgroundColor; }
set { BrightnessContrastDialogStyle.GenericControlBackgroundColor = value; }
}
///
/// Gets or sets the color of the dialog background.
///
public Color BackgroundColor
{
get { return BrightnessContrastDialogStyle.BrightnessContrastDialogBackgroundColor; }
set { BrightnessContrastDialogStyle.BrightnessContrastDialogBackgroundColor = value; }
}
///
/// Gets or sets the color of the lines in the BC Combo
///
public Color AxisTicksColor
{
get { return BrightnessContrastDialogStyle.AxisTicksColor; }
set { BrightnessContrastDialogStyle.AxisTicksColor = value; }
}
///
/// Gets or sets the color of the lines in the BC Combo
///
public Color PlotterLineColor
{
get { return BrightnessContrastDialogStyle.PlotterLineColor; }
set { BrightnessContrastDialogStyle.PlotterLineColor = value; }
}
///
/// Gets or sets the color of the plotter background.
///
public Color PlotterBackgroundColor
{
get { return BrightnessContrastDialogStyle.PlotterBackgroundColor; }
set { BrightnessContrastDialogStyle.PlotterBackgroundColor = value; }
}
///
/// Gets or sets the color of the lines in the BC Combo
///
public Color ComboLineColor
{
get { return BrightnessContrastDialogStyle.ComboLineColor; }
set { BrightnessContrastDialogStyle.ComboLineColor = value; }
}
///
/// Gets or sets the color of the axes of the plotter
///
///
/// The color of the axes of the plotter
///
public Color AxisMarkersColor
{
get { return BrightnessContrastDialogStyle.AxisMarkersColor; }
set { BrightnessContrastDialogStyle.AxisMarkersColor = value; }
}
///
/// Initializes a new instance of the class.
///
public BCDialogVisualSettings()
{
this.InitializeComponent();
this.DataContext = this;
this.UpdateComboBoxes();
}
///
/// Handles the Click event of the ResetStylesButton control.
///
/// The source of the event.
/// The instance containing the event data.
private void ResetStyleButton_Click(object sender, RoutedEventArgs e)
{
BrightnessContrastDialogStyle.ResetStyles();
this.UpdateComboBoxes();
}
///
/// Sets the combo boxes to have the values from the dictionary
///
private void UpdateComboBoxes()
{
this.HeaderFontColorCombo.SelectedColor = this.HeaderFontColor;
this.HeaderFontSizeCombo.SelectedValue = this.HeaderFontSize;
this.HeaderFontFamilyCombo.SelectedValue = this.HeaderFontFamily;
this.HeaderFontStyleCombo.SelectedValue = this.HeaderFontStyle;
this.BackgroundColorCombo.SelectedColor = this.BackgroundColor;
this.ControlBackgroundColorCombo.SelectedColor = this.GenericControlBackgroundColor;
this.PlotterBackgroundColorCombo.SelectedColor = this.PlotterBackgroundColor;
this.ComboLineColorCombo.SelectedColor = this.ComboLineColor;
this.PlotterAxisColorCombo.SelectedColor = this.AxisMarkersColor;
this.PlotterAxisTicksColorCombo.SelectedColor = this.AxisTicksColor;
this.PlotterLineColorCombo.SelectedColor = this.PlotterLineColor;
}
}
}