Uredi

Deli z drugimi prek


ImageBrush.ImageSource Property

Definition

Gets or sets the image displayed by this ImageBrush.

public:
 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.

Remarks

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

imageUri System.String

A URI of an image.

Dependency Property Information

Identifier field ImageSourceProperty
Metadata properties set to true None

Applies to