File tree 4 files changed +17
-12
lines changed
BottomSheetSample/BottomSheetSample 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 60
60
</ItemGroup >
61
61
62
62
<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" />
66
67
</ItemGroup >
67
68
68
69
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
+ xmlns : listview =" clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView"
4
5
x : Class =" BottomSheet.FavoritesPage"
5
6
Title =" Favorites Page" >
6
- <CollectionView ItemsSource =" {Binding FavoriteBooks}" >
7
- <CollectionView .ItemTemplate>
7
+ <listview : SfListView ItemsSource =" {Binding FavoriteBooks}" SelectionMode = " None " >
8
+ <listview : SfListView .ItemTemplate>
8
9
<DataTemplate >
9
- <Border Margin = " 10 " Padding = " 10 " >
10
+ <Border >
10
11
<VerticalStackLayout >
11
12
<Label Text =" {Binding Title}" FontAttributes =" Bold" FontSize =" 20" />
12
13
<Label Text =" {Binding Description}" FontSize =" 14" TextColor =" Gray" />
13
14
</VerticalStackLayout >
14
15
</Border >
15
16
</DataTemplate >
16
- </CollectionView .ItemTemplate>
17
- </CollectionView >
17
+ </listview : SfListView .ItemTemplate>
18
+ </listview : SfListView >
18
19
</ContentPage >
Original file line number Diff line number Diff line change 2
2
<ContentPage xmlns =" http://schemas.microsoft.com/dotnet/2021/maui"
3
3
xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4
4
xmlns : bottomSheet =" clr-namespace:Syncfusion.Maui.Toolkit.BottomSheet;assembly=Syncfusion.Maui.Toolkit"
5
+ xmlns : listview =" clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView"
5
6
xmlns : local =" clr-namespace:BottomSheetSample"
6
7
x : Class =" BottomSheetSample.MainPage" >
7
8
14
15
</ContentPage .ToolbarItems>
15
16
16
17
<Grid >
17
- <ListView ItemsSource =" {Binding Books}" HasUnevenRows = " True " >
18
- <ListView .ItemTemplate>
18
+ <listview : SfListView ItemsSource =" {Binding Books}" SelectionMode = " None " >
19
+ <listview : SfListView .ItemTemplate>
19
20
<DataTemplate >
20
21
<ViewCell >
21
22
<VerticalStackLayout Padding =" 10" >
29
30
</VerticalStackLayout >
30
31
</ViewCell >
31
32
</DataTemplate >
32
- </ListView .ItemTemplate>
33
- </ListView >
33
+ </listview : SfListView .ItemTemplate>
34
+ </listview : SfListView >
34
35
35
36
<bottomSheet : SfBottomSheet x : Name =" bottomSheet" >
36
37
<bottomSheet : SfBottomSheet .BottomSheetContent>
Original file line number Diff line number Diff line change 1
1
using Microsoft . Extensions . Logging ;
2
2
using Syncfusion . Maui . Toolkit . Hosting ;
3
+ using Syncfusion . Maui . Core . Hosting ;
3
4
4
5
namespace BottomSheetSample
5
6
{
@@ -11,6 +12,7 @@ public static MauiApp CreateMauiApp()
11
12
builder
12
13
. UseMauiApp < App > ( )
13
14
. ConfigureSyncfusionToolkit ( )
15
+ . ConfigureSyncfusionCore ( )
14
16
. ConfigureFonts ( fonts =>
15
17
{
16
18
fonts . AddFont ( "OpenSans-Regular.ttf" , "OpenSansRegular" ) ;
You can’t perform that action at this time.
0 commit comments