What is the equivalent of Load (Winforms) in WPF?

I need to tweak controls before the page/form is displayed to the user.

How does this work in WPF

I'm guessing/hoping that I just need to set a property on the window or panel element to specify my event handler, but can't find any help on the subject.

Please advise

Thanks




Answer this question

What is the equivalent of Load (Winforms) in WPF?

  • samantha chandrasekar

    Answer: Loaded

    <StackPanel
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="SDKSample.FELoaded"
    Loaded="OnLoad"
    Name="root"
    >
    </StackPanel>



  • What is the equivalent of Load (Winforms) in WPF?