ComponentFactory.Krypton.Toolkit.KryptonPaletteTabButton.PopulateFromBase C# (CSharp) Method

PopulateFromBase() public method

Populate values from the base palette.
public PopulateFromBase ( ) : void
return void
        public void PopulateFromBase()
        {
            // Populate only the designated styles
            _stateFocus.PopulateFromBase(PaletteState.FocusOverride);
            _stateDisabled.PopulateFromBase(PaletteState.Disabled);
            _stateNormal.PopulateFromBase(PaletteState.Normal);
            _stateTracking.PopulateFromBase(PaletteState.Tracking);
            _statePressed.PopulateFromBase(PaletteState.Pressed);
            _stateSelected.PopulateFromBase(PaletteState.CheckedNormal);
        }

Usage Example

 /// <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();
 }