D3DImage.CreateInstanceCore Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.