Landscape Orientation?

5 posts, 0 answers
  1. Lee
    Lee avatar
    5 posts
    Member since:
    Jul 2008

    Posted 25 Nov 2011 Link to this post

    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

  2. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 29 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Lee
    Lee avatar
    5 posts
    Member since:
    Jul 2008

    Posted 30 Nov 2011 Link to this post

    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
  5. Oliver
    Oliver avatar
    2 posts
    Member since:
    Jan 2012

    Posted 22 Jan 2012 Link to this post

    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.

  6. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 25 Jan 2012 Link to this post

    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 >>

Back to Top
DevCraft banner