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
295
XamRibbonWindow and DataContext
posted

Hi there,

my wpf app is a xamribbonwindow.

I have set the Datacontext in XAML like this:

<igRibbon:XamRibbonWindow.DataContext>
<vm:ViewModel/>
</igRibbon:XamRibbonWindow.DataContext>

I do have problem with databinding on the ribbon

<igRibbon:XamRibbon x:Name="myRibbon" DockPanel.Dock="Top" SelectedTab="{Binding SelectedRibbonTab}" RibbonTabItemSelected="myRibbon_RibbonTabItemSelected" >

The event "myRibbon_RibbonTabItemSelected" is being fired, works like expected.

The Binding to SelectedRibbonTab in the ViewModel does not work. This property never gets updated.

On the other hand:

<igRibbon:ButtonTool Caption="button"
Command="{Binding RibbonCommand}"
CommandParameter="but1"
/>

The ribbon command binding (same viewmodel) works like expected.

Is this a bug, or whats goi8ng wrong here?

Thanks for any idea.

Thomas

Parents
No Data
Reply
  • 140
    Offline posted

    Hello Thomas,

    I had a look at your issue with the xamribbon databinding not working.  After investigating I have found this issue to be a bug.  I have logged this with a development id of 271447. You can view the status of the development issue connected to this case by selecting the "Development Issues" tab when viewing this case on the web site. 

    I have created a private support case for you with an id of CAS-209461-P6C1C2 you can find it here: https://es.infragistics.com/my-account/support-activity

     

    Regards.

    Nicholas

Children