ComponentFactory.Krypton.Docking.KryptonDockableWorkspace.OnActiveCellChanged C# (CSharp) Method

OnActiveCellChanged() protected method

Raises the ActiveCellChanged event.
protected OnActiveCellChanged ( ActiveCellChangedEventArgs e ) : void
e ComponentFactory.Krypton.Workspace.ActiveCellChangedEventArgs An ActiveCellChangedEventArgs containing the event data.
return void
        protected override void OnActiveCellChanged(ActiveCellChangedEventArgs e)
        {
            // Ensure all but the newly selected cell have a lower profile appearance
            KryptonWorkspaceCell cell = FirstCell();
            while (cell != null)
            {
                if (e.NewCell != cell)
                    cell.Bar.TabStyle = TabStyle.StandardProfile;
                cell = NextCell(cell);
            }

            // Ensure the newly selected cell has a higher profile appearance
            if (e.NewCell != null)
                e.NewCell.Bar.TabStyle = TabStyle.HighProfile;

            base.OnActiveCellChanged(e);
        }