Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BitmapImage::UriSource Property

 

Gets or sets the Uri source of the BitmapImage.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

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

Property Value

Type: System::Uri^

The Uri source of the BitmapImage. The default is null.

If StreamSource and UriSource are both set, the StreamSource value is ignored.

Identifier field

UriSourceProperty

Metadata properties set to true

None

The following example demonstrates the use the UriSource property in Extensible Application Markup Language (XAML) and code.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft