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
Post a Comment