public PopulateFromBase ( PaletteState state ) : void | ||
state | PaletteState | Palette state to use when populating. |
Résultat | void |
/// <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.ContextMenuItemImage; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemImage; common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemImage; _paletteItemImage.PopulateFromBase(state); }
/// <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.ContextMenuItemHighlight; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemHighlight; _paletteItemHighlight.PopulateFromBase(state); common.StateCommon.BackStyle = PaletteBackStyle.ContextMenuItemImage; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemImage; common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemImage; _paletteItemImage.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemShortcutText; _paletteItemShortcutText.PopulateFromBase(state); common.StateCommon.BackStyle = PaletteBackStyle.ContextMenuSeparator; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuSeparator; _paletteItemSplit.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemTextStandard; _paletteItemTextStandard.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemTextAlternate; _paletteItemTextAlternate.PopulateFromBase(state); }