Data associated with a change in the active cell.
Inheritance: System.EventArgs
        /// <summary>
        /// Raises the ActiveCellChanged event.
        /// </summary>
        /// <param name="e">An ActiveCellChangedEventArgs containing the event data.</param>
        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);
        }
Example #2
0
        private void kryptonWorkspace_ActiveCellChanged(object sender, ActiveCellChangedEventArgs e)
        {
            // Ensure all but the newly selected cell have a lower profile appearance
            KryptonWorkspaceCell cell = kryptonWorkspace.FirstCell();
            while (cell != null)
            {
                if (e.NewCell != cell)
                    cell.Bar.TabStyle = TabStyle.StandardProfile;
                cell = kryptonWorkspace.NextCell(cell);
            }

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