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

Landscape Orientation?

4 Answers 104 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.
Lee
Top achievements
Rank 1
Lee asked on 26 Nov 2011, 12:03 AM
Does the SlideView support Landscape viewing?  I'd like the images to fill the screen when in landscape view but when the orientation is changed, the image's orientation remains in portrait.

Here's the relevant XAML:

<Grid x:Name="LayoutRoot" Background="Transparent">
       <telerikPrimitives:RadSlideView x:Name="slideView" AllowZoomOut="True" IsZoomedOut="False">
           <telerikPrimitives:RadSlideView.DataSource>
               <telerikPrimitives:SlideViewContentSource ItemsSource="{Binding}"/>
           </telerikPrimitives:RadSlideView.DataSource>
           <telerikPrimitives:RadSlideView.ItemTemplate>
               <DataTemplate>
                   <Image Stretch="UniformToFill" Source="{Binding Content.Image}"/>
               </DataTemplate>
           </telerikPrimitives:RadSlideView.ItemTemplate>
       </telerikPrimitives:RadSlideView>
   </Grid>

The page's SupportOrientation property is set to PortraitOrLandscape and the Orientation is set to Portrait.

Thx!
Lee

4 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 29 Nov 2011, 10:45 AM
Hi Lee,

Thank you for your question.

The control is designed to consider the current page orientation and should automatically adjust its layout upon a change. Yesterday I prepared a sample demo using RadSlideView and it supports page orientations. Could you please give it a try and check whether it works fine on your side? If not I would kindly ask you to prepare a sample project which demonstrates the issue and to open a new support ticket with the project attached so that I can debug it locally and see where the problem is.

Link to the blog post with the demo

Thank you for your time, I am looking forward to your reply.

Regards,
Georgi
the Telerik team

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

0
Lee
Top achievements
Rank 1
answered on 30 Nov 2011, 11:33 PM
Hi Georgi,

Actually, the problem turned out to be that I had SIP on so that I could use the keyboard for input.  After restarting the emulator, switching to landscape mode worked as expected.  Frustratingly simple!
Thanks!
Lee
0
Oliver
Top achievements
Rank 1
answered on 22 Jan 2012, 11:10 PM
I've tested the ZoomedPage example in the Example app and when the orientation changes to landscape the pictures don't scale to full size and also do not center vertically. Instead they hug the bottom edge and 30% of the image height is hidden under the bottom edge.

0
Georgi
Telerik team
answered on 25 Jan 2012, 10:52 AM
Hi Oliver,

Thank you for your question.

The Demo application is designed to work in Portrait mode only. Actually the root frame has a custom control template that does not support orientation changes, that is why the ZoomedPage is not laid-out well when you explicitly specify supported orientations. If you try this in another application, with the default RadPhoneApplicationFrame template everything should work as expected.

I hope this helps. Let us know if you have other questions.

Greetings,
Georgi
the Telerik team

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

Tags
SlideView
Asked by
Lee
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Lee
Top achievements
Rank 1
Oliver
Top achievements
Rank 1
Share this question
or