This question is locked. New answers and comments are not allowed.
Greeting Guys,
I am trying to display a small Image on a certain position on a PanAndZoomImage. I currently fail on display the small marker relative to the zoomable Image.
The dataTemplate with the small image
This is my current RadSlideView
//I tried to reply but it did't update somehow so i have put my response in here:
Thank you very much Todor!
You helped me a lot. There is still this one problem, when i overlay the small picture on a certain point on the picture and I zoom scroll, the panandzoom picture shifts but the Marker stays at the relative to the Slide view.
I have got the absolute position where i want to display it and somehow anchor it even if i zoom in and scroll around.
I have experimented with canvas but still got no result that could archive that.
Any response, idea or suggestion is appreciated.
Kind regards,
Alex
I am trying to display a small Image on a certain position on a PanAndZoomImage. I currently fail on display the small marker relative to the zoomable Image.
The dataTemplate with the small image
<UserControl.Resources> <DataTemplate x:Name="OverlayTemplate"> <telerikPrimitives:RadTransitionControl> <telerikPrimitives:RadTransitionControl.Transition> <telerikPrimitives:RadTransition> <telerikPrimitives:RadTransition.ForwardInAnimation> <telerikCore:RadSlideAnimation StartPoint="0,0" EndPoint="30,50" Duration=""/> </telerikPrimitives:RadTransition.ForwardInAnimation> </telerikPrimitives:RadTransition> </telerikPrimitives:RadTransitionControl.Transition> <telerikPrimitives:RadTransitionControl.ContentTemplate> <DataTemplate> <Image Source="/Images/temp/simpleMarker.png" Stretch="None"/> </Grid> </DataTemplate> </telerikPrimitives:RadTransitionControl.ContentTemplate> </telerikPrimitives:RadTransitionControl> </DataTemplate></UserControl.Resources>
This is my current RadSlideView
<telerikPrimitives:RadSlideView x:Name="radSlideView" ItemsSource="{Binding Path=Maps}" ItemRealizationMode="ViewportItem" IsShowOverlayContentOnTapEnabled="True" OverlayContentTemplate="{StaticResource OverlayTemplate}"> <telerikPrimitives:RadSlideView.ItemTemplate> <DataTemplate> <Grid> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Text="{Binding Path=Name}" FontSize="{StaticResource PhoneFontSizeLarge}"/> <telerikSlideView:PanAndZoomImage Source="Binding Path Picture" ZoomMode="Free"> <telerikSlideView:PanAndZoomImage.BusyIndicatorStyle> <Style TargetType="telerikPrimitives:RadBusyIndicator"> <Setter Property="IsEnabled" Value="False"/> </Style> </telerikSlideView:PanAndZoomImage.BusyIndicatorStyle> </telerikSlideView:PanAndZoomImage> </Grid> </DataTemplate> </telerikPrimitives:RadSlideView.ItemTemplate> <telerikPrimitives:RadSlideView.ItemPreviewTemplate> <DataTemplate> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Name}" FontSize="{StaticResource PhoneFontSizeLarge}"/> </DataTemplate> </telerikPrimitives:RadSlideView.ItemPreviewTemplate><telerikPrimitives:RadSlideView.ItemContainerStyle> <Style TargetType="telerikSlideView:SlideViewItem"> <Setter Property="BusyIndicatorStyle"> <Setter.Value> <Style TargetType="telerikPrimitives:RadBusyIndicator"> <Setter Property="Visibility" Value="Collapsed" /> </Style> </Setter.Value> </Setter> </Style> </telerikPrimitives:RadSlideView.ItemContainerStyle> </telerikPrimitives:RadSlideView>
One other Question: Is there a way to display the Overlay right away and not just when the user taped on the image
Thanks in advance!
//I tried to reply but it did't update somehow so i have put my response in here:
Thank you very much Todor!
You helped me a lot. There is still this one problem, when i overlay the small picture on a certain point on the picture and I zoom scroll, the panandzoom picture shifts but the Marker stays at the relative to the Slide view.
I have got the absolute position where i want to display it and somehow anchor it even if i zoom in and scroll around.
I have experimented with canvas but still got no result that could archive that.
Any response, idea or suggestion is appreciated.
Kind regards,
Alex