Hello,
I have problems with the MenuTool in my MVVM application.It works as expected, but the Click-Event is fired only in the green area. I want it to be fired in the red area too. How can I achieve this?
<igRibbon:RibbonGroup Id="Ansicht" Caption="Ansicht"><igRibbon:ToolHorizontalWrapPanel><igRibbon:MenuTool Id="LoadView" Caption="Laden" SmallImage="/DexSMS.Common;component/Assets/Images/16/layout.png"LargeImage="/DexSMS.Common;component/Assets/Images/32/layout.png"
ItemsSource="{Binding Ansichten}"> <igRibbon:MenuTool.ItemTemplate> <DataTemplate>
<igRibbon:ButtonTool Content="{Binding}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <ei:ChangePropertyAction TargetObject="{Binding Source={StaticResource proxy}, Path=Data}" PropertyName="Ansicht" Value="{Binding}" /> </i:EventTrigger> </i:Interaction.Triggers> </igRibbon:ButtonTool> </DataTemplate> </igRibbon:MenuTool.ItemTemplate> </igRibbon:MenuTool>
...
Thank you for your post. I have been looking into it and could not reproduce the issue you have mentioned. I have created a small sample application in order to test this functionality. Would you please modify the sample with the functionality you are using in order for me to be able to reproduce your issue and provide you with better support.
Looking forward to hearing from you.
I have modifiy your sample to reproduce the issue. Maybe something is wrong with my DataTemplate !?
I have been looking into your issue. After some research I have made for you I can suggest to take a look at the following forum threads: http://ko.infragistics.com/community/forums/p/27446/105647.aspx, http://ko.infragistics.com/community/blogs/ivo_evtimov/archive/2011/07/26/using-xamribbon-buttontool-in-mvvm-applications.aspx.
The second link is to a blog of our colleague Ivo Evtimov, the you can find more information about how to bind xamRibbons ButtonTool in MVVM applications.
Please do not hesitate to let me know if you have any further questions on the matter.
Hello dexonline,
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Currently another project takes priority, so at the moment I do not need any further assistance.