BitmapSource.GetAsFrozenCore(Freezable) 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.
Makes this instance a clone of the specified BitmapSource object.
protected:
override void GetAsFrozenCore(System::Windows::Freezable ^ sourceFreezable);
protected override void GetAsFrozenCore (System.Windows.Freezable sourceFreezable);
override this.GetAsFrozenCore : System.Windows.Freezable -> unit
Protected Overrides Sub GetAsFrozenCore (sourceFreezable As Freezable)
Parameters
- sourceFreezable
- Freezable
The BitmapSource object to clone and freeze.
Remarks
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.
Applies to
.NET