Ejemplo n.º 1
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 /// <param name="common">Reference to common settings.</param>
 /// <param name="state">State to inherit.</param>
 public void PopulateFromBase(KryptonPaletteCommon common,
                              PaletteState state)
 {
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuInner;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuInner;
     ControlInner.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuOuter;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuOuter;
     ControlOuter.PopulateFromBase(state);
     common.StateCommon.BackStyle    = PaletteBackStyle.ContextMenuHeading;
     common.StateCommon.BorderStyle  = PaletteBorderStyle.ContextMenuHeading;
     common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuHeading;
     Heading.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuItemImageColumn;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemImageColumn;
     ItemImageColumn.PopulateFromBase(state);
     common.StateCommon.BackStyle   = PaletteBackStyle.ContextMenuSeparator;
     common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuSeparator;
     Separator.PopulateFromBase(state);
 }