c# - How to associate an event with a menuitem in WPF using VS2008? -


i in process of learning wpf (i don't know yet). know how associate menu subitem event directly editing xaml but, i'd know how same thing using visual studio.

for instance, consider following xaml snippet:

    <menu dockpanel.dock ="top"           horizontalalignment="left" background="white" borderbrush ="black">        <menuitem header="_file"/>        <separator/>        <menuitem header ="_exit"                  mouseenter ="mouseenterexitarea"                  mouseleave ="mouseleavearea"                  click ="fileexit_click"/> 

i'd able associate "_exit" menuitem appropriate event handlers mouseenter, mouseleave , click using visual studio instead of manually editing xaml text. trying accomplish using "items" collection editor but, seems allow editing of subitem's properties , not events. there editor/dialog/etc allows editing subitem's events ?

thank help,

john.

p.s: thank h.b taking time format xaml properly. :-)

it not seem possible this.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -