Skip to content

Commit 28fa190

Browse files
Update README.md
1 parent a901dc9 commit 28fa190

File tree

1 file changed

+3
-42
lines changed

1 file changed

+3
-42
lines changed

README.md

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,9 @@ This example demonstrates how to create a horizontal listview using Xamarin.Form
55
## Sample
66
```xaml
77
<Grid>
8-
<Grid.RowDefinitions>
9-
<RowDefinition Height="Auto"/>
10-
<RowDefinition Height="Auto"/>
11-
</Grid.RowDefinitions>
12-
<Grid x:Name="headerGrid" BackgroundColor="#FFEEEEF2" HeightRequest="45">
13-
<Label LineBreakMode="NoWrap"
14-
Text="Photo Gallery" FontAttributes="Bold"
15-
FontSize="16" TextColor="Black" HorizontalOptions="Center" VerticalOptions="Center"/>
16-
</Grid>
17-
<syncfusion:SfListView x:Name="listView" Orientation="Horizontal" Padding="10,10,10,10"
18-
SelectionMode="None" Grid.Row="1"
19-
ItemsSource="{Binding Gallerynfo}"
20-
ItemSpacing="3">
21-
<syncfusion:SfListView.HeightRequest>
22-
<OnPlatform x:TypeArguments="x:Double">
23-
<On Platform="Android">
24-
<OnIdiom x:TypeArguments="x:Double" Phone="220" Tablet="220" />
25-
</On>
26-
<On Platform="iOS">
27-
<OnIdiom x:TypeArguments="x:Double" Phone="170" Tablet="280" />
28-
</On>
29-
<On Platform="UWP">
30-
<OnIdiom x:TypeArguments="x:Double" Desktop="220" Phone="200" Tablet="220" />
31-
</On>
32-
<On Platform="macOS" Value="220"/>
33-
</OnPlatform>
34-
</syncfusion:SfListView.HeightRequest>
35-
36-
<syncfusion:SfListView.ItemSize>
37-
<OnPlatform x:TypeArguments="x:Double">
38-
<On Platform="Android">
39-
<OnIdiom x:TypeArguments="x:Double" Phone="173" Tablet="180" />
40-
</On>
41-
<On Platform="iOS">
42-
<OnIdiom x:TypeArguments="x:Double" Phone="125" Tablet="250" />
43-
</On>
44-
<On Platform="UWP">
45-
<OnIdiom x:TypeArguments="x:Double" Desktop="170" Phone="160" Tablet="170" />
46-
</On>
47-
<On Platform="macOS" Value="170"/>
48-
</OnPlatform>
49-
</syncfusion:SfListView.ItemSize>
8+
<syncfusion:SfListView x:Name="listView"
9+
Orientation="Horizontal"
10+
ItemsSource="{Binding Gallerynfo}">
5011

5112
<syncfusion:SfListView.ItemTemplate>
5213
<DataTemplate>

0 commit comments

Comments
 (0)