how to write a window load event in c# for a xaml window

  • Thread starter Thread starter moondaddy
  • Start date Start date
M

moondaddy

using c# 3.5, I need to write a form load event in a xaml window's
codebehind, but I have now idea how to start this. can someone please
advise?

Thanks.
 
Hi,

You can use the Window's Loaded event:

<Window x:Class=... Loaded="Window_Loaded">
...

private void Window_Loaded(object sender, RoutedEventArgs e)
{

}



Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top