This is a migrated thread and some comments may be shown as answers.

pinch to zoom issue

3 Answers 65 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 07 May 2012, 10:43 PM
I just implemented the slideView control for images and I noticed an issue with the main image not on top.  The right preview is still on top when the pinch starts.  Below is my simple markup

<telerikPrimitives:RadSlideView
           ItemsSource="{Binding Photos}"
           SelectedItem="{Binding CurrentPhoto, Mode=TwoWay}"
           ItemRealizationMode="Default"
           AdjacentItemsPreviewMode="Both" IsLoopingEnabled="True">
           <telerikPrimitives:RadSlideView.ItemTemplate>
               <DataTemplate>
                   <telerikSlideView:PanAndZoomImage
                       Source="{Binding BestResolutionAvailableUri}"
                       ZoomMode="Free"  />                  
               </DataTemplate>
           </telerikPrimitives:RadSlideView.ItemTemplate>
       </telerikPrimitives:RadSlideView>

3 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 09 May 2012, 12:00 PM
Hello Mike,

I can confirm that this is an issue within both RadSlideView and PanAndZoomImage. Unfortunately, we are not aware of an existing workaround which can be useful in your particular scenario.
It is in our plans to work extensively on fixing this issue immediately after our official Q2 2012 release (scheduled for the middle of June). I'll let you know as soon as we manage to fix the issue. Meanwhile, let me know if you have further questions or comments. In addition, I've updated your Telerik points accordingly. 

Kind regards,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Mike
Top achievements
Rank 1
answered on 09 May 2012, 12:11 PM
Best work around is to turn off preview :)  I wanted more of the default wp7 photo viewer look anyways.

Always good to know it's not related to any of my code.

Thanks

-Mike
0
Alex
Top achievements
Rank 1
answered on 29 Oct 2013, 02:01 AM
Hi!
What we did in our solution is following:
We added a behavior to the PanAndZoom which basically adds AssociatedObject (PanAndZoom control) to the shared WeakReference<PanAndZoom> list;

On the page itself, we subscribe to the SlideView.SelectionChanged event and in the handler we walk over the collection and reset .Zoom and .Pan properties of all alive controls inside.

The homework for everybody is to find out when and how to handle that collection so it doesn't bring any memory-troubles ;)
Tags
SlideView
Asked by
Mike
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Mike
Top achievements
Rank 1
Alex
Top achievements
Rank 1
Share this question
or