/// <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); StateSelected.PopulateFromBase(PaletteState.CheckedNormal); }
/// <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); }