Bewerken

Share via


D3DImage.CreateInstanceCore Method

Definition

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

protected:
 override System::Windows::Freezable ^ CreateInstanceCore();
protected override System.Windows.Freezable CreateInstanceCore ();
override this.CreateInstanceCore : unit -> System.Windows.Freezable
Protected Overrides Function CreateInstanceCore () As Freezable

Returns

The new instance.

Remarks

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.

Applies to