BitmapImage.UriSource Property

 

Gets or sets the Uri source of the BitmapImage.

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

member UriSource : Uri with get, set

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: