PersonPicture.ProfilePicture Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the source of the contact's profile picture.
Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.PersonPicture.ProfilePicture (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
public:
property ImageSource ^ ProfilePicture { ImageSource ^ get(); void set(ImageSource ^ value); };
ImageSource ProfilePicture();
void ProfilePicture(ImageSource value);
public ImageSource ProfilePicture { get; set; }
var imageSource = personPicture.profilePicture;
personPicture.profilePicture = imageSource;
Public Property ProfilePicture As ImageSource
<PersonPicture ProfilePicture="uri"/>
Property Value
An object that represents the image source file for the drawn image. Typically you set this with a BitmapImage object, constructed with the Uniform Resource Identifier (URI) that describes the path to a valid image source file. Or, you can initialize a BitmapSource with a stream, perhaps a stream from a storage file.