ImageBrush.ImageSource Property


Gets or sets the image displayed by this ImageBrush.

 property System::Windows::Media::ImageSource ^ ImageSource { System::Windows::Media::ImageSource ^ get(); void set(System::Windows::Media::ImageSource ^ value); };
public System.Windows.Media.ImageSource ImageSource { get; set; }
member this.ImageSource : System.Windows.Media.ImageSource with get, set
Public Property ImageSource As ImageSource

Property Value

The image displayed by this ImageBrush.


An ImageBrush paints an area with an ImageSource. The most common type of ImageSource to use with an ImageBrush is a BitmapImage, which describes a bitmap graphic. You can use a DrawingImage to paint using a Drawing object, but it is simpler to use a DrawingBrush instead. For more information about ImageSource objects, see Imaging Overview and Painting with Images, Drawings, and Visuals

XAML Attribute Usage

<object ImageSource="imageUri"/>  

XAML Text Usage

For XAML information, see ImageSource.

XAML Values


A URI of an image.

Dependency Property Information

Identifier field ImageSourceProperty
Metadata properties set to true None

Applies to

See also