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

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.
 
W

Walter Wang [MSFT]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top