Share via


BitmapIconSource.UriSource Property

Definition

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

This documentation applies to WinUI 2 for UWP (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);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
Uri UriSource();

void UriSource(Uri value);
public System.Uri UriSource { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public System.Uri UriSource { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
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.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Applies to