Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IComponentConnector Interface

Provides markup compile and tools support for named XAML elements and for attaching event handlers to them.

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

The IComponentConnector type exposes the following members.

  NameDescription
Public methodConnectAttaches events and names to compiled content.
Public methodInitializeComponentLoads the compiled page of a component.
Top

This interface 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.

In previous versions of the .NET Framework, this interface existed in the WPF-specific assembly WindowsBase. In .NET Framework version 4, IComponentConnector is in the System.Xaml assembly. . For more information, see Types Migrated from WPF to System.Xaml.

TipTip

A failure to resolve IComponentConnector during an attempted build is often an indicator that you have not updated your WPF project correctly. In particular, the project is not referencing the System.Xaml assembly for a project that targets .NET Framework 4. Try running the devenv /upgrade option for the project, or otherwise adjust the project assembly references so that System.Xaml is in the reference list.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.