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
205
GetClickedElements from a XamDataTree's context menu opening event
posted

<DataTemplate>

                         <TextBlock Text="{Binding Data.ChapterName}" />

                    </DataTemplate>

                    </ig:NodeLayout.ItemTemplate>

                </ig:NodeLayout>

            </ig:XamDataTree.GlobalNodeLayouts>

        </ig:XamDataTree>

 

code behind:

 private void XamContextMenu_Opening(object sender, OpeningEventArgs e)
   {
       //this gives error 
       List<XamDataTreeNode> elements = e.GetClickedElements<XamDataTreeNode>();
   }

 

Note: This works fine with the XamTree 
(
List<XamTreeItem> elements = e.GetClickedElements<XamTreeItem>();)

 

Thanks in advance.

 

 


Parents Reply Children
No Data