Bug 22092 - Windows phone the listview don't show any selection rectangle when using xaml and datatemplates.
Summary: Windows phone the listview don't show any selection rectangle when using xaml...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-14 04:10 UTC by Henrik Stromberg
Modified: 2015-05-18 19:46 UTC (History)
4 users (show)

Tags: windows listview
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Henrik Stromberg 2014-08-14 04:10:34 UTC
Using xanl below don't show selection rectangle on Windows Phone

ItemsSource="{Binding Restaurant.Dishes}"
HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid ColumnSpacing="4" RowSpacing="4" Padding="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="2" />
</Grid.RowDefinitions>
<Label Text="{Binding Name}" />
<Label Text="{Binding PriceText}" Grid.Column="1" HorizontalOptions="EndAndExpand" />
<BoxView Color="#FF1F95FD" Grid.Row="1" Grid.ColumnSpan="2" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Comment 1 Eric Maupin 2015-05-18 19:46:08 UTC
As of 1.3.0, Labels in your ViewCell should now be set to a selection color when selected.