How do I determine the selected item of a Context Menu RRS feed

  • Question

  • I have an object which I created in Expression Blend.  I added items to a Context Menu which is associated with the object in code (not in XAML) at run-time.  When I click the object, my event routine tells me which object it is, but there is no SelectedItem property for the Context Menu.  How do I determine which item was selected?
    lynn johnson
    Saturday, February 12, 2011 12:49 PM

All replies

  • Could you please post your xaml. It depends on the visual structure of elements which define your context menu.
    Saturday, February 12, 2011 1:36 PM
  • And the code, since you are doing some of the work in the code behind per your post.
    Monday, February 14, 2011 2:26 PM