This documentation is archived and is not being maintained.

HwndTarget Class

Represents a binding to a window handle that supports visual composition.

Namespace:  System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public class HwndTarget : CompositionTarget
You cannot directly create an instance of this class in XAML.

A HwndTarget is not thread-safe. You can reference a HwndTarget only from the thread that created it. If you try to access HwndTarget from a different thread, an InvalidOperationException is thrown.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0