Share via


ScalableImage Class

Definition

Represents an image that can render as a vector or as a bitmap.

public ref class ScalableImage : System::Windows::FrameworkElement
public class ScalableImage : System.Windows.FrameworkElement
type ScalableImage = class
    inherit FrameworkElement
Public Class ScalableImage
Inherits FrameworkElement
Inheritance
ScalableImage

Constructors

ScalableImage()

Initializes a new instance of the ScalableImage class.

Fields

SourceProperty

Identifies the Source dependency property.

Properties

Source

Gets or sets the ScalableImageSource used to render the image. This is a dependency property.

Methods

ArrangeOverride(Size)

Called when the control is asked to render itself in a given area. Sets the render size to use all available area when Brush is provided.

GetLayoutClip(Size)

Override of . Make this control to respect the ClipToBounds attribute value.

OnCreateAutomationPeer()

Create an instance of the AutomationPeer.

OnRender(DrawingContext)

Called when the control is being rendered. Renders the contents of the image as a vector or a bitmap, depending on which is provided.

OnSourceChanged(PropertyChangedEventArgs<ScalableImageSource>)

Called when Source property changes.

Events

SourceChanged

Occurs when Source property changes.

Applies to