InitializeComponent Method
Collapse the table of content
Expand the table of content

IComponentConnector.InitializeComponent Method ()


Loads the compiled page of a component.

Namespace:   System.Windows.Markup
Assembly:  System.Xaml (in System.Xaml.dll)

void InitializeComponent()

IComponentConnector is used internally by Baml2006Reader.

Implementations of InitializeComponent are widely observable as part of the infrastructure provided by frameworks or technologies that use XAML combined with application and programming models. For example, whenever you look at the generated classes for XAML root elements in WPF pages and applications, you will see InitializeComponent defined in the output. That method also exists in the compiled assembly and plays a role in the WPF application model of loading the XAML UI content at XAML parse time. For more information on the WPF integration of the InitializeComponent concept, see Application Management Overview or Code-Behind and XAML in WPF.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft