public PopulateFromBase ( |
||
common | Reference to common settings. | |
state | PaletteState | The palette state to populate with. |
gridStyle | GridStyle | Grid style to use for populating. |
return | void |
public override void PopulateFromBase(KryptonPaletteCommon common,
PaletteState state,
GridStyle gridStyle)
{
base.PopulateFromBase(common, state, gridStyle);
if (gridStyle == GridStyle.List)
common.StateCommon.BackStyle = PaletteBackStyle.GridBackgroundList;
else
common.StateCommon.BackStyle = PaletteBackStyle.GridBackgroundSheet;
_background.PopulateFromBase(state);
}
/// <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); }