/// <summary>
        /// Populate values from the base palette.
        /// </summary>
        /// <param name="state">The palette state to populate with.</param>
        /// <param name="common">Reference to common settings.</param>
        /// <param name="gridStyle">Grid style to use for populating.</param>
        public override void PopulateFromBase(KryptonPaletteCommon common,
                                              PaletteState state,
                                              GridStyle gridStyle)
        {
            base.PopulateFromBase(common, state, gridStyle);

            common.StateCommon.BackStyle = gridStyle == GridStyle.List
                ? PaletteBackStyle.GridBackgroundList
                : PaletteBackStyle.GridBackgroundSheet;

            _background.PopulateFromBase(state);
        }
示例#2
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 public void PopulateFromBase()
 {
     // Populate only the designated styles
     _stateDisabled.PopulateFromBase(PaletteState.Disabled);
     _stateNormal.PopulateFromBase(PaletteState.Normal);
 }