Changing orientation cutting the viewCell

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

    Posted 18 Feb 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"/>
                  </StackLayout>
                
              </listView:ListViewTemplateCell.View>
            </listView:ListViewTemplateCell>
          </DataTemplate>
        </telerik:RadListView.ItemTemplate>

    and here is the screenshots how the screens look

    https://i.gyazo.com/babda11a4a72d23ed101af18123e7f7b.png Vertical

    https://i.gyazo.com/e6f25b23b9393cb3544bb18ca0308c3e.png Horizontal

     

    Thanks in advance for any help.

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

    Posted 18 Feb 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. DevCraft banner
  4. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 23 Feb 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.

    Regards,
    Rosy Topchiyska
    Telerik
    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