This question is locked. New answers and comments are not allowed.
Hi Telerik,
Is there a way I can define 4 different context menus in XAML and then programatically assign them as needed to be the one shown when clicking nodes?
so once the context menus are defined in xaml, they would be swapped out programatically with one line of code. treeView.ContextMenu = menu1, menu2, etc
Although I can generate all context menus programatically, prefer to have them in xaml to easily modify and make design changes. I tried adding multiple context menus but cannot. Is there a way to define xaml objects somewhere else and then assign them as needed?
For example (one radtreeview with 2 root top level nodes)
(when clicking customers context menu shows custom menu for cutomers with items like (send customer invoice, send letter)
-Customers
+Lockhead
+Raytheon
(when clicking internal staff context menu shows custom menu for staff with items like (call customer, email customer)
-Internal Staff
+Marketing Director
+Sales Director
Is there a way I can define 4 different context menus in XAML and then programatically assign them as needed to be the one shown when clicking nodes?
so once the context menus are defined in xaml, they would be swapped out programatically with one line of code. treeView.ContextMenu = menu1, menu2, etc
Although I can generate all context menus programatically, prefer to have them in xaml to easily modify and make design changes. I tried adding multiple context menus but cannot. Is there a way to define xaml objects somewhere else and then assign them as needed?
For example (one radtreeview with 2 root top level nodes)
(when clicking customers context menu shows custom menu for cutomers with items like (send customer invoice, send letter)
-Customers
+Lockhead
+Raytheon
(when clicking internal staff context menu shows custom menu for staff with items like (call customer, email customer)
-Internal Staff
+Marketing Director
+Sales Director