This documentation is archived and is not being maintained.

D3DImage.CreateInstanceCore Method

Updated: July 2008

When implemented in a derived class, creates a new instance of the D3DImage derived class.

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

protected override Freezable CreateInstanceCore()
You cannot use methods in XAML.

Return Value

Type: System.Windows.Freezable
The new instance.

If you derive from the D3DImage class, you must override the CreateInstanceCore method to enable correct cloning. The default implementation performs a return new D3DImage(), which will not be correct if the instance is a different class.

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 SP1, 3.0 SP2




July 2008

Added topic for new class.

SP1 feature change.