Partager via


DeepZoomImageTileSource.UriSource Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the source Uri of the DeepZoomImageTileSource.

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

Syntax

'Declaration
Public Property UriSource As Uri
public Uri UriSource { get; set; }
<DeepZoomImageTileSource UriSource ="uri".../>

Property Value

Type: System.Uri
The source Uri of the DeepZoomImageTileSource.

Remarks

Dependency property identifier field: UriSourceProperty

Examples

The following sample shows how to use DeepZoomImageTileSource to set the source of the MultiScaleImage.

Public Sub New()
    InitializeComponent()
    Dim MyMSI As New MultiScaleImage()
    MyMSI.Source = New DeepZoomImageTileSource(New System.Uri("Source/dzc_output.xml", UriKind.Relative))
    LayoutRoot.Children.Add(MyMSI)
End Sub
public MainPage()
{
    InitializeComponent();
    MultiScaleImage MyMSI = new MultiScaleImage();
    MyMSI.Source = new DeepZoomImageTileSource(new System.Uri("Source/dzc_output.xml", UriKind.Relative));
    LayoutRoot.Children.Add(MyMSI);
}

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.