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
1070
The NewSelectedRibbonTabItem or PreviousSelectedRibbonTabItem on RibbonTabItemSelectedEventArgs is always null
posted

We have a Ribbon defined in XAML like the following...

<igRibbon:XamRibbonWindow ..... >
  <igRibbon:RibbonWindowContentHost>
    <igRibbon:RibbonWindowContentHost.Ribbon>
      <igRibbon:XamRibbon x:Name="ribbon" RibbonTabItemSelected="ribbon_RibbonTabItemSelected" ApplicationMenuMode="Office2010" ... >
  ....
</igRibbon:XamRibbonWindow>

private void ribbon_RibbonTabItemSelected(object sender, RibbonTabItemSelectedEventArg e) {
   ...
}

Our Ribbon has the Application Menu File tab and a Home tab that is a RibbonTabItem. The RibbonTabItemSelectedEventArg does not seem to recognize the Application Menu File tab so the NewSelectedRibbonTabItem or PreviousSelectedRibbonTabItem on RibbonTabItemSelectedEventArgs is always null when its the Application Menu tab. Is this by design or was this overlooked in someway?

Parents
  • 54937
    Offline posted

    That's not a tab item so that is expected/by design. The SelectedTab goes to null when you open the application menu or application menu 2010 so the tab is not shown as selected. If you want to know when the application menu 2010 is opened then you would hook the Opened/Closed events of the menu (or bind to its IsOpen, etc).

Reply Children
No Data