ImageBrush.ImageSource Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit l’image affichée par 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
Valeur de propriété
Image affichée par ImageBrush.
Remarques
Un ImageBrush peint une zone avec un ImageSource. Le type le plus courant à ImageSource utiliser avec un ImageBrush est un BitmapImage, qui décrit un graphique bitmap. Vous pouvez utiliser un DrawingImage objet pour peindre à l’aide d’un Drawing objet, mais il est plus simple d’utiliser un DrawingBrush objet à la place. Pour plus d’informations sur les objets, consultez Vue d’ensemble de l’imagerie ImageSource et peinture avec des images, des dessins et des visuels
Utilisation d'attributs XAML
<object ImageSource="imageUri"/>
Utilisation du texte XAML
Pour plus d’informations SUR XAML, consultez ImageSource.
Valeurs XAML
imageUri
System.String
URI d’une image.
Informations sur les propriétés de dépendance
Champ d’identificateur | ImageSourceProperty |
Propriétés de métadonnées définies sur true |
Aucun |