File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
BottomSheetSample/BottomSheetSample Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
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" >
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>
Original file line number Diff line number Diff line change 11using Microsoft . Extensions . Logging ;
22using Syncfusion . Maui . Toolkit . Hosting ;
3+ using Syncfusion . Maui . Core . Hosting ;
34
45namespace 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" ) ;
You can’t perform that action at this time.
0 commit comments