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

Changing orientation cutting the viewCell

2 Answers 95 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 18 Feb 2016, 01:49 PM

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 Answers, 1 is accepted

Sort by
0
Andrey
Top achievements
Rank 1
answered on 18 Feb 2016, 04:09 PM
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)
0
Rosy Topchiyska
Telerik team
answered on 23 Feb 2016, 12:41 PM
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
Tags
ListView
Asked by
Andrey
Top achievements
Rank 1
Answers by
Andrey
Top achievements
Rank 1
Rosy Topchiyska
Telerik team
Share this question
or