Files
docs-desktop/dotnet-desktop-guide/framework/wpf/advanced/how-to-handle-a-loaded-event.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.2 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Handle a Loaded Event 03/30/2017
csharp
vb
XAML [WPF], Loaded events
events [WPF], Loaded
Loaded events [WPF]
0cf8d003-8441-4df4-807a-6db09347e829

How to: Handle a Loaded Event

This example shows how to handle the xref:System.Windows.FrameworkElement.Loaded?displayProperty=nameWithType event, and an appropriate scenario for handling that event. The handler creates a xref:System.Windows.Controls.Button when the page loads.

Example

The following example uses [!INCLUDETLA#tla_xaml] together with a code-behind file.

[!code-xamlFELoaded#XAML]

[!code-csharpFELoaded#Handler] [!code-vbFELoaded#Handler]

See also