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
785
ContextMenu binding not working
posted

Hi,

 

I'm trying to do binding to the ContextMenu and I can't get anything to display. If I replace the ContextMeny by a regulat Menu, then it works as expected.

 

Here's the XAML that I use:

 

        <igMenu:XamWebMenu ItemsSource="{Binding}">
            <igMenu:XamWebMenu.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}"/>
                </DataTemplate>
            </igMenu:XamWebMenu.ItemTemplate>
        </igMenu:XamWebMenu>


        <Image Source="/PopupButtonTest;component/Filter2HS.png" Stretch="None" >
            <igMenu:ContextMenuService.Manager>
                <igMenu:ContextMenuManager ModifierKeys="None" OpenMode="LeftClick">
                    <igMenu:ContextMenuManager.ContextMenu>
                        <igMenu:XamWebContextMenu Placement="AlignedToTheLeft" ItemsSource="{Binding}" >
                            <igMenu:XamWebContextMenu.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Name}"/>
                                </DataTemplate>
                            </igMenu:XamWebContextMenu.ItemTemplate>
                        </igMenu:XamWebContextMenu>
                    </igMenu:ContextMenuManager.ContextMenu>
                </igMenu:ContextMenuManager>
            </igMenu:ContextMenuService.Manager>
        </Image>

Parents Reply Children
No Data