Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 771792c

Browse files
committedMay 14, 2025·
Updated the sample
1 parent 5b8d66e commit 771792c

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed
 

‎BottomSheetSample/BottomSheetSample/BottomSheetSample.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@
6060
</ItemGroup>
6161

6262
<ItemGroup>
63-
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.60" />
64-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.4" />
65-
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="*" />
63+
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.70" />
64+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.5" />
65+
<PackageReference Include="Syncfusion.Maui.ListView" Version="29.2.4" />
66+
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="1.0.4" />
6667
</ItemGroup>
6768

6869
<ItemGroup>
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
xmlns:listview="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView"
45
x:Class="BottomSheet.FavoritesPage"
56
Title="Favorites Page">
6-
<CollectionView ItemsSource="{Binding FavoriteBooks}">
7-
<CollectionView.ItemTemplate>
7+
<listview:SfListView ItemsSource="{Binding FavoriteBooks}" SelectionMode="None">
8+
<listview:SfListView.ItemTemplate>
89
<DataTemplate>
9-
<Border Margin="10" Padding="10">
10+
<Border>
1011
<VerticalStackLayout>
1112
<Label Text="{Binding Title}" FontAttributes="Bold" FontSize="20"/>
1213
<Label Text="{Binding Description}" FontSize="14" TextColor="Gray"/>
1314
</VerticalStackLayout>
1415
</Border>
1516
</DataTemplate>
16-
</CollectionView.ItemTemplate>
17-
</CollectionView>
17+
</listview:SfListView.ItemTemplate>
18+
</listview:SfListView>
1819
</ContentPage>

‎BottomSheetSample/BottomSheetSample/MainPage.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:bottomSheet="clr-namespace:Syncfusion.Maui.Toolkit.BottomSheet;assembly=Syncfusion.Maui.Toolkit"
5+
xmlns:listview="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView"
56
xmlns:local="clr-namespace:BottomSheetSample"
67
x:Class="BottomSheetSample.MainPage">
78

@@ -14,8 +15,8 @@
1415
</ContentPage.ToolbarItems>
1516

1617
<Grid>
17-
<ListView ItemsSource="{Binding Books}" HasUnevenRows="True">
18-
<ListView.ItemTemplate>
18+
<listview:SfListView ItemsSource="{Binding Books}" SelectionMode="None">
19+
<listview:SfListView.ItemTemplate>
1920
<DataTemplate>
2021
<ViewCell>
2122
<VerticalStackLayout Padding="10">
@@ -29,8 +30,8 @@
2930
</VerticalStackLayout>
3031
</ViewCell>
3132
</DataTemplate>
32-
</ListView.ItemTemplate>
33-
</ListView>
33+
</listview:SfListView.ItemTemplate>
34+
</listview:SfListView>
3435

3536
<bottomSheet:SfBottomSheet x:Name="bottomSheet">
3637
<bottomSheet:SfBottomSheet.BottomSheetContent>

‎BottomSheetSample/BottomSheetSample/MauiProgram.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.Extensions.Logging;
22
using Syncfusion.Maui.Toolkit.Hosting;
3+
using Syncfusion.Maui.Core.Hosting;
34

45
namespace BottomSheetSample
56
{
@@ -11,6 +12,7 @@ public static MauiApp CreateMauiApp()
1112
builder
1213
.UseMauiApp<App>()
1314
.ConfigureSyncfusionToolkit()
15+
.ConfigureSyncfusionCore()
1416
.ConfigureFonts(fonts =>
1517
{
1618
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");

0 commit comments

Comments
 (0)
Please sign in to comment.