Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MediaPlayer::GetAsFrozenCore Method

Makes this instance a clone of the specified MediaPlayer object.

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

protected:
virtual void GetAsFrozenCore(
	Freezable^ sourceFreezable
) override

Parameters

sourceFreezable
Type: System.Windows::Freezable

The MediaPlayer object to clone and freeze.

When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Note that if these properties contain resource references or data bindings, GetAsFrozen will fail when trying to freeze the object and will throw an InvalidOperationException.

This method is called by the GetAsFrozen method and should not be called directly from your code, except when calling the base implementation while overriding this method. To create a frozen copy of the current object, call GetAsFrozen instead of calling this method directly.

For more information, see Freezable::GetAsFrozenCore.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft