ImageDrawing.ImageSource 属性

定义

获取或设置图像的源。

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

属性值

图像的源。 默认值为 null

注解

XAML 属性用法

<object ImageSource="imageUri"/>

XAML 文本用法

有关 XAML 信息,请参阅类型 ImageSource

XAML 值

imageUriSystem.String

映像文件的 URI。

Dependency 属性信息

物品 价值
标识符字段 ImageSourceProperty
元数据标志 None

适用于