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