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
115
Problems with MenuTool
posted

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>

...

Parents Reply Children
No Data