Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Simple Question

 
 
Old 11-19-2006   #1 (permalink)
Shawn B.


 
 

Simple Question

Greetings,

I'm new to WPF. I've been searching high and low in the MSDN docs but
haven't found exactly what I'm looking for but close to it, just not close
enough to answer my question.

In the WinForms world, there is a Load event or an onLoad function that you
can override in order to do things at the start of the Form but after the
page initializes. What is the equavalant for WPF?


Thanks,
Shawn



My System SpecsSystem Spec
Old 11-19-2006   #2 (permalink)
J


 
 

Re: Simple Question

Hello,

there is the "FrameworkContentElement.Loaded" Event.
I quote from the Windows SDK:
"Occurs when the element is laid out, rendered, and ready for
interaction. "

This is the declaration in C#:
public event RoutedEventHandler Loaded

and in XAML:
<object Loaded="RoutedEventHandler" .../>


All the best,
Andrei Iacob


Shawn B. wrote:
> Greetings,
>
> I'm new to WPF. I've been searching high and low in the MSDN docs but
> haven't found exactly what I'm looking for but close to it, just not close
> enough to answer my question.
>
> In the WinForms world, there is a Load event or an onLoad function that you
> can override in order to do things at the start of the Form but after the
> page initializes. What is the equavalant for WPF?
>
>
> Thanks,
> Shawn


My System SpecsSystem Spec
Old 11-19-2006   #3 (permalink)
Zhou Yong


 
 

Re: Simple Question

In WPF world, We have Window.Loaded event, but unfortunately we don't have
Window.OnLoaded method.

Sheva


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Simple question .NET General
Simple Question Vista General
Simple Question? Vista General
a simple question Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46