/// <summary> /// Populate values from the base palette. /// </summary> public void PopulateFromBase() { // Populate only the designated styles StateNormal.PopulateFromBase(PaletteState.Normal); StateTracking.PopulateFromBase(PaletteState.Tracking); StatePressed.PopulateFromBase(PaletteState.Pressed); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="metric">Which metric should be used for padding.</param> public void PopulateFromBase(PaletteMetricPadding metric) { // Populate only the designated styles StateDisabled.PopulateFromBase(PaletteState.Disabled, metric); StateNormal.PopulateFromBase(PaletteState.Normal, metric); StateTracking.PopulateFromBase(PaletteState.Tracking, metric); StatePressed.PopulateFromBase(PaletteState.Pressed, metric); }
/// <summary> /// Populate values from the base palette. /// </summary> public void PopulateFromBase() { // Populate only the designated styles OverrideFocus.PopulateFromBase(PaletteState.FocusOverride); StateDisabled.PopulateFromBase(PaletteState.Disabled); StateNormal.PopulateFromBase(PaletteState.Normal); StateTracking.PopulateFromBase(PaletteState.Tracking); StatePressed.PopulateFromBase(PaletteState.Pressed); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> /// <param name="gridStyle">Grid style to use for populating.</param> public void PopulateFromBase(KryptonPaletteCommon common, GridStyle gridStyle) { // Populate only the designated styles StateDisabled.PopulateFromBase(common, PaletteState.Disabled, gridStyle); StateNormal.PopulateFromBase(common, PaletteState.Normal, gridStyle); StateTracking.PopulateFromBase(common, PaletteState.Tracking, gridStyle); StatePressed.PopulateFromBase(common, PaletteState.Pressed, gridStyle); StateSelected.PopulateFromBase(common, PaletteState.CheckedNormal, gridStyle); }