Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ListView ViewCell click animation (on Windows Phone)

$
0
0

Hi all,

I have got the following ViewCell as Data template for my ListView:

<ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <ViewCell.View>
                            <StackLayout Padding="15,5,5,5"
                                     Orientation="Horizontal"
                                     Spacing="10">
                                <Image Source="{Binding LocalImagePath}" WidthRequest="75"/>
                                <Label Font="Bold,16" YAlign="Center" Text="{Binding Title}" TextColor="#666468"/>
                            </StackLayout>
                        </ViewCell.View>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>

On Android and iOS the ListView uses default animations for when the row/ViewCell is clicked, but on Windows Phone this animation is only shown with the default Cells, like the ImageCell.

My question: What would be the preferred way of implementing a click animation for the custom ViewCells?


Viewing all articles
Browse latest Browse all 58056

Trending Articles