Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
ContextualTab IsSelected Property
posted

Hi ,

I'd like to programatically select a contextual tab in the ribbon. The regular Tabs have IsSelected property, but the contextual don't. How can this be achieved?

Regards,

Stevo

  • 6475
    Suggested Answer
    posted

    Hi Stevo,

    The contextual tab actually contains regular TabItems. So, to select a contextual tab you'll need to:

    1. Make sure the contextual tab is visible:  

    myRibbon.ContextualTabs[0].IsVisible = true;

    2. Select the first TabItem in that contextual tab:

    myRibbon.ContextualTabs[0].Tabs[0].IsSelected = true;

     

    Hope that helps,