Partager via


ImageSourceExtension Class

Definition

Caution

Callers should use the CrispImage control which supports scaling and theming. Additionally, in some cases this markup extension can cause crashes.

MarkupExtension which can create an ImageSource from a path string.

public ref class ImageSourceExtension sealed : Microsoft::VisualStudio::PlatformUI::ValueExtension<System::Windows::Media::ImageSource ^>
public sealed class ImageSourceExtension : Microsoft.VisualStudio.PlatformUI.ValueExtension<System.Windows.Media.ImageSource>
[System.Obsolete("Callers should use the CrispImage control which supports scaling and theming. Additionally, in some cases this markup extension can cause crashes.")]
public sealed class ImageSourceExtension : Microsoft.VisualStudio.PlatformUI.ValueExtension<System.Windows.Media.ImageSource>
type ImageSourceExtension = class
    inherit ValueExtension<ImageSource>
[<System.Obsolete("Callers should use the CrispImage control which supports scaling and theming. Additionally, in some cases this markup extension can cause crashes.")>]
type ImageSourceExtension = class
    inherit ValueExtension<ImageSource>
Public NotInheritable Class ImageSourceExtension
Inherits ValueExtension(Of ImageSource)
Inheritance
Attributes

Constructors

ImageSourceExtension(ImageSource)

Creates a new instance of the class.

Properties

Value

Microsoft internal use only.

(Inherited from ValueExtension<T>)

Methods

ProvideValue(IServiceProvider)

Microsoft internal use only.

(Inherited from ValueExtension<T>)

Applies to