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.

--
moondaddy@newsgroup.nospam

RE: how to write a window load event in c# for a xaml window by wawang

wawang
Wed Jan 23 18:36:25 CST 2008

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 (wawang@online.microsoft.com, 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.


Re: how to write a window load event in c# for a xaml window by moondaddy

moondaddy
Tue Jan 29 13:57:26 CST 2008

Thanks Walter.

""Walter Wang [MSFT]"" <wawang@online.microsoft.com> wrote in message
news:bl%237rEiXIHA.6404@TK2MSFTNGHUB02.phx.gbl...
> 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 (wawang@online.microsoft.com, 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.
>