Context tabs are those that only appear when a selection has occured in your application. These have now been added.

I have added a collection for handling KryptonRibbonContext instances. This allows the developer to define the names of different contexts along with a color they would like to use for drawing.

The KryptonRibbonTab now has a field called ContextName that prevents the tab being shown until that context is selected. This allows you to associate particular tabs with a particular context.

Once you define the KryptonRibbon.SelectedContext to the name of a valid context it will show the tabs associated with that name. These contextual tabs always appear at the end of the list of standard tabs.

Here I have defined a context with a green highlight color.

And now a red context.

Next I need to allow the specification of a list of different context names to the KryptonRibbon.SelectedContext property. So if the developers application allows multiple selection of different objects then they will want to show multiple sets of context tabs at once.

Leave a Reply