ImageBrush.ImageSource 屬性

定義

取得或設定這個 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

屬性值

這個 ImageBrush 顯示的影像。

備註

繪製 ImageBrush 具有 ImageSource 的區域。 與 搭配 ImageBrush 使用的最常見類型 ImageSourceBitmapImage ,其描述點陣圖圖形。 您可以使用 DrawingImage 來繪製 Drawing 物件,但改用 DrawingBrush 比較簡單。 如需物件的詳細資訊 ImageSource ,請參閱影像 概觀繪製影像、繪圖和視覺效果

XAML Attribute Usage

<object ImageSource="imageUri"/>  

XAML 文字使用方式

如需 XAML 資訊,請參閱 ImageSource

XAML 值

imageUri
System.String

映射的 URI。

相依性屬性資訊

識別碼欄位 ImageSourceProperty
設定為 的中繼資料屬性 true

適用於

另請參閱