Telerik UI for Windows Phone by Progress

This topic describes each property of PanAndZoomImage.

Source

The Source property is of type ImageSource and specifies the image which will be used.

CopyXAML
<telerikSlideView:PanAndZoomImage Source="MyImage.png"/>

Stretch

The Stretch property is of type Stretch and determines how the image will be stretched to fill the available size of the control initially. This property is identical to the Stretch property of the Image class.

CopyXAML
<telerikSlideView:PanAndZoomImage Stretch="UniformToFill"/>

Zoom

The Zoom property specifies the horizontal and vertical zoom factors of the image. Images can be zoomed either uniformly or non-uniformly depending on whether the zoom factors are equal or not. The Zoom property is of type Size.

CopyXAML
<telerikSlideView:PanAndZoomImage Zoom="2"/>

Pan

The Pan property specifies the horizontal and vertical offsets of the image when it is zoomed.

CopyXAML
<telerikSlideView:PanAndZoomImage Pan="300, 200"
                                  Zoom="4"/>

ZoomMode

The ZoomMode property has three available values: Free, FitToPhysicalSize and None. Free means that the maximum zoom is determined by the MaximumZoom property. FitToPhysicalSize means the image can be zoomed to fit the device screen but not more. None means that Zoom is disabled.

CopyXAML
<telerikSlideView:PanAndZoomImage ZoomMode="None"/>

MaximumZoom

The MaximumZoom property determines how much the image can be zoomed. Setting Zoom to values greater than MaximumZoom has no effect. If the value of ZoomMode is different than Free, MaximumZoom has no effect.

CopyXAML
<telerikSlideView:PanAndZoomImage ZoomMode="Free"
                                  MaximumZoom="5"/>

BusyIndicatorStyle

The BusyIndicatorStyle property determines the visual style of the busy indicator in PanAndZoomImage. This indicator becomes visible when the Source property points to an image that has to be downloaded or to an image that takes a while to open for some reason. See this help topic for more information.