visual studio 2010 - In what file is the event-handler wiring stored in VS2010 WPF application -


in visual studio 2010 designer, if press [f4] while wpf mainwindow has focus, properties view. if click on events tab, , double-click "loaded", handler window's loaded event automatically created in mainwindow.xaml.cs:

 private void window_loaded(object sender, routedeventargs e)     {      } 

but "wiring" code attaches handler event?

you notice in mainwindow.xaml there loaded attribute on window node points event handling method:

<window ... loaded="window_loaded">     ... </window> 

that how xaml parser knows method wire up


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -