/// <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 virtual void PopulateFromBase(KryptonPaletteCommon common, PaletteState state, GridStyle gridStyle) { if (gridStyle == GridStyle.List) { common.StateCommon.SetStyles(PaletteBackStyle.GridHeaderColumnList, PaletteBorderStyle.GridHeaderColumnList, PaletteContentStyle.GridHeaderColumnList); } else { common.StateCommon.SetStyles(PaletteBackStyle.GridHeaderColumnSheet, PaletteBorderStyle.GridHeaderColumnSheet, PaletteContentStyle.GridHeaderColumnSheet); } _headerColumn.PopulateFromBase(state); if (gridStyle == GridStyle.List) { common.StateCommon.SetStyles(PaletteBackStyle.GridHeaderRowList, PaletteBorderStyle.GridHeaderRowList, PaletteContentStyle.GridHeaderRowList); } else { common.StateCommon.SetStyles(PaletteBackStyle.GridHeaderRowSheet, PaletteBorderStyle.GridHeaderRowSheet, PaletteContentStyle.GridHeaderRowSheet); } _headerRow.PopulateFromBase(state); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.TabHighProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.TabHighProfile; common.StateCommon.ContentStyle = PaletteContentStyle.TabHighProfile; TabHighProfile.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.TabStandardProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.TabStandardProfile; common.StateCommon.ContentStyle = PaletteContentStyle.TabStandardProfile; TabStandardProfile.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.TabLowProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.TabLowProfile; common.StateCommon.ContentStyle = PaletteContentStyle.TabLowProfile; TabLowProfile.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.TabDock; common.StateCommon.BorderStyle = PaletteBorderStyle.TabDock; common.StateCommon.ContentStyle = PaletteContentStyle.TabDock; TabDock.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.TabDockAutoHidden; common.StateCommon.BorderStyle = PaletteBorderStyle.TabDockAutoHidden; common.StateCommon.ContentStyle = PaletteContentStyle.TabDockAutoHidden; TabDockAutoHidden.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.TabOneNote; common.StateCommon.BorderStyle = PaletteBorderStyle.TabOneNote; common.StateCommon.ContentStyle = PaletteContentStyle.TabOneNote; TabOneNote.PopulateFromBase(); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.ContentStyle = PaletteContentStyle.LabelNormalControl; LabelNormalControl.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelBoldControl; LabelNormalControl.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelItalicControl; LabelNormalControl.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelTitleControl; LabelTitleControl.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelNormalPanel; LabelNormalPanel.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelBoldPanel; LabelNormalPanel.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelItalicPanel; LabelNormalPanel.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelTitlePanel; LabelTitlePanel.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelGroupBoxCaption; LabelCaptionPanel.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelToolTip; LabelToolTip.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelSuperTip; LabelSuperTip.PopulateFromBase(); common.StateCommon.ContentStyle = PaletteContentStyle.LabelKeyTip; LabelKeyTip.PopulateFromBase(); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.FormMain; common.StateCommon.BorderStyle = PaletteBorderStyle.FormMain; FormMain.PopulateFromBase(); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.HeaderPrimary; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderPrimary; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderPrimary; HeaderPrimary.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.HeaderSecondary; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderSecondary; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderSecondary; HeaderSecondary.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.HeaderDockInactive; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderDockInactive; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderDockInactive; HeaderDockInactive.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.HeaderDockActive; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderDockActive; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderDockActive; HeaderDockActive.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.HeaderCalendar; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderCalendar; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderCalendar; HeaderCalendar.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.HeaderForm; common.StateCommon.BorderStyle = PaletteBorderStyle.HeaderForm; common.StateCommon.ContentStyle = PaletteContentStyle.HeaderForm; HeaderForm.PopulateFromBase(); }
/// <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; ItemImage.PopulateFromBase(state); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles StateCommon.PopulateFromBase(common, PaletteState.Normal); StateDisabled.PopulateFromBase(common, PaletteState.Disabled); StateNormal.PopulateFromBase(common, PaletteState.Normal); StateHighlight.PopulateFromBase(common, PaletteState.Tracking); StateChecked.PopulateFromBase(common, PaletteState.CheckedNormal); }
/// <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; ItemHighlight.PopulateFromBase(state); common.StateCommon.BackStyle = PaletteBackStyle.ContextMenuSeparator; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuSeparator; ItemSplit.PopulateFromBase(state); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.PanelClient; PanelClient.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.PanelAlternate; PanelAlternate.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.PanelRibbonInactive; PanelRibbonInactive.PopulateFromBase(); }
/// <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); }
/// <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); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.InputControlStandalone; common.StateCommon.BorderStyle = PaletteBorderStyle.InputControlStandalone; common.StateCommon.ContentStyle = PaletteContentStyle.InputControlStandalone; InputControlStandalone.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.InputControlRibbon; common.StateCommon.BorderStyle = PaletteBorderStyle.InputControlRibbon; common.StateCommon.ContentStyle = PaletteContentStyle.InputControlRibbon; InputControlRibbon.PopulateFromBase(); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.SeparatorLowProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.SeparatorLowProfile; SeparatorLowProfile.PopulateFromBase(PaletteMetricPadding.SeparatorPaddingLowProfile); common.StateCommon.BackStyle = PaletteBackStyle.SeparatorHighProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.SeparatorHighProfile; SeparatorHighProfile.PopulateFromBase(PaletteMetricPadding.SeparatorPaddingHighProfile); common.StateCommon.BackStyle = PaletteBackStyle.SeparatorHighInternalProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.SeparatorHighInternalProfile; SeparatorHighInternalProfile.PopulateFromBase(PaletteMetricPadding.SeparatorPaddingHighInternalProfile); }
/// <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); }
/// <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; ItemHighlight.PopulateFromBase(state); common.StateCommon.BackStyle = PaletteBackStyle.ContextMenuItemImage; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuItemImage; common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemImage; ItemImage.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemShortcutText; ItemShortcutText.PopulateFromBase(state); common.StateCommon.BackStyle = PaletteBackStyle.ContextMenuSeparator; common.StateCommon.BorderStyle = PaletteBorderStyle.ContextMenuSeparator; ItemSplit.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemTextStandard; ItemTextStandard.PopulateFromBase(state); common.StateCommon.ContentStyle = PaletteContentStyle.ContextMenuItemTextAlternate; ItemTextAlternate.PopulateFromBase(state); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.ControlClient; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlClient; ControlClient.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ControlAlternate; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlAlternate; ControlAlternate.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ControlGroupBox; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlGroupBox; ControlGroupBox.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ControlToolTip; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlToolTip; ControlToolTip.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ControlRibbon; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlRibbon; ControlRibbon.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ControlRibbonAppMenu; common.StateCommon.BorderStyle = PaletteBorderStyle.ControlRibbonAppMenu; ControlRibbonAppMenu.PopulateFromBase(); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles GridList.PopulateFromBase(common, GridStyle.List); GridSheet.PopulateFromBase(common, GridStyle.Sheet); }
/// <summary> /// Populate values from the base palette. /// </summary> /// <param name="common">Reference to common settings.</param> public void PopulateFromBase(KryptonPaletteCommon common) { // Populate only the designated styles common.StateCommon.BackStyle = PaletteBackStyle.ButtonStandalone; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonStandalone; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonStandalone; ButtonStandalone.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonAlternate; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonAlternate; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonAlternate; ButtonAlternate.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonLowProfile; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonLowProfile; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonLowProfile; ButtonLowProfile.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonButtonSpec; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonButtonSpec; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonButtonSpec; ButtonButtonSpec.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonBreadCrumb; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonBreadCrumb; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonBreadCrumb; ButtonBreadCrumb.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonCalendarDay; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonCalendarDay; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonCalendarDay; ButtonCalendarDay.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonNavigatorStack; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonNavigatorStack; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonNavigatorStack; ButtonNavigatorStack.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonNavigatorOverflow; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonNavigatorOverflow; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonNavigatorOverflow; ButtonNavigatorOverflow.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonNavigatorMini; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonNavigatorMini; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonNavigatorMini; ButtonNavigatorMini.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonInputControl; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonInputControl; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonInputControl; ButtonInputControl.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonListItem; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonListItem; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonListItem; ButtonListItem.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonForm; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonForm; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonForm; ButtonForm.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonFormClose; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonFormClose; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonFormClose; ButtonFormClose.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonCommand; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonCommand; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonCommand; ButtonCommand.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonCluster; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonCluster; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonCluster; ButtonCluster.PopulateFromBase(); common.StateCommon.BackStyle = PaletteBackStyle.ButtonGallery; common.StateCommon.BorderStyle = PaletteBorderStyle.ButtonGallery; common.StateCommon.ContentStyle = PaletteContentStyle.ButtonGallery; ButtonGallery.PopulateFromBase(); }