This question is locked. New answers and comments are not allowed.
Hi,
I have a PanAndZoom control:
<slideView:PanAndZoomImage
Source="{Binding ImageSource}"
Stretch="UniformToFill"
Margin="0"
ZoomMode="Free"
MaximumZoom="10"
CacheMode="BitmapCache" Canvas.ZIndex="10">
<slideView:PanAndZoomImage.BusyIndicatorStyle>
<Style TargetType="telerikPrimitives:RadBusyIndicator">
<Setter Property="AnimationStyle" Value="AnimationStyle9" />
<Setter Property="InitialDelay" Value="0:0:0" />
<Setter Property="Content" Value="Loading..." />
<Setter Property="Foreground" Value="{StaticResource RivetPhoneForegroundBrush}" />
</Style>
</slideView:PanAndZoomImage.BusyIndicatorStyle>
</slideView:PanAndZoomImage>
If the image is wide, ie with an aspect ratio of 16:9, I want the user to be able to pan left,right to view the entire image. If it is to tall, I want the same thing, just up and down.
The issue however, is that the PanAndZoom control will destroy all parts of the image that are outside of what is initially rendered. If an image is outside of the view of the app, it will be gone.
Ie:
XXXXOOOXXXX
XXXXOOOXXXX
XXXXOOOXXXX
XXXXOOOXXXX
Where OOO is the display area of the phone, and X indicates the image outside of the view of the phone.
Is there a way to fix/circumvent this?
I have a PanAndZoom control:
<slideView:PanAndZoomImage
Source="{Binding ImageSource}"
Stretch="UniformToFill"
Margin="0"
ZoomMode="Free"
MaximumZoom="10"
CacheMode="BitmapCache" Canvas.ZIndex="10">
<slideView:PanAndZoomImage.BusyIndicatorStyle>
<Style TargetType="telerikPrimitives:RadBusyIndicator">
<Setter Property="AnimationStyle" Value="AnimationStyle9" />
<Setter Property="InitialDelay" Value="0:0:0" />
<Setter Property="Content" Value="Loading..." />
<Setter Property="Foreground" Value="{StaticResource RivetPhoneForegroundBrush}" />
</Style>
</slideView:PanAndZoomImage.BusyIndicatorStyle>
</slideView:PanAndZoomImage>
If the image is wide, ie with an aspect ratio of 16:9, I want the user to be able to pan left,right to view the entire image. If it is to tall, I want the same thing, just up and down.
The issue however, is that the PanAndZoom control will destroy all parts of the image that are outside of what is initially rendered. If an image is outside of the view of the app, it will be gone.
Ie:
XXXXOOOXXXX
XXXXOOOXXXX
XXXXOOOXXXX
XXXXOOOXXXX
Where OOO is the display area of the phone, and X indicates the image outside of the view of the phone.
Is there a way to fix/circumvent this?