Changing orientation cutting the viewCell

3 posts, 0 answers
  1. Andrey
    Andrey avatar
    4 posts
    Member since:
    Feb 2016

    Posted 18 Feb 2016 Link to this post

    I`m usinglistViewTemplateCell with vertical stack layout contains image and label. Once I`m changing the device orientation  cell changing orientation too and cutting the image and label is disappearing.

    here is the code:

    <telerik:RadListView.ItemTemplate >
          <DataTemplate >
            <listView:ListViewTemplateCell >
              <listView:ListViewTemplateCell.View >
                  <StackLayout Padding="10" Orientation="Vertical">
                    <Image  Aspect="AspectFit"   VerticalOptions="Start" HorizontalOptions="Center"  Source="{Binding ImagePath, Converter={StaticResource imageConverter}}" />
                    <Label Text="{Binding ItemName}" HorizontalOptions="Center" VerticalOptions="EndAndExpand" FontAttributes="Bold"/>

    and here is the screenshots how the screens look Vertical Horizontal


    Thanks in advance for any help.

  2. Andrey
    Andrey avatar
    4 posts
    Member since:
    Feb 2016

    Posted 18 Feb 2016 in reply to Andrey Link to this post

    I forgot to say that RadListView orientation is Horisontal. Vertical orientation does not have same issue but still looks not expected (cells still changing orientation, so borders and so also changing)
  3. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 23 Feb 2016 Link to this post

    Hello Andrey,

    Thank you for contacting us.

    The StackLayout does not play well with images in ListView item template. Could you please try with a Grid and see if this will fix the problem. We will further investigate the problem.

    Thank you for reporting this issue, I have added Telerik points to your account as a token of gratitude.

    Rosy Topchiyska
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top