Udostępnij za pośrednictwem


BitmapIconSource.UriSource Property

Definition

Gets or sets the Uniform Resource Identifier (URI) of the bitmap to use as the icon content.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.BitmapIconSource.UriSource (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Uri ^ UriSource { Uri ^ get(); void set(Uri ^ value); };
Uri UriSource();

void UriSource(Uri value);
public System.Uri UriSource { get; set; }
var uri = bitmapIconSource.uriSource;
bitmapIconSource.uriSource = uri;
Public Property UriSource As Uri
<BitmapIconSource UriSource="uriString"/>

Property Value

The Uri of the bitmap to use as the icon content. The default is null.

Applies to