Skip to content

Commit b1a5cf9

Browse files
committed
version upgrade
1 parent d3ee67f commit b1a5cf9

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

MyFinance/MyFinance.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
6969
<PackageReference Include="DevExpress.Maui.Controls" Version="23.2.6" />
7070
<PackageReference Include="DevExpress.Maui.Editors" Version="23.2.6" />
71-
<PackageReference Include="FmgLib.MauiMarkup" Version="8.7.0" />
71+
<PackageReference Include="FmgLib.MauiMarkup" Version="8.8.0" />
7272
<PackageReference Include="LiveChartsCore.SkiaSharpView.Maui" Version="2.0.0-rc2" />
7373
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.7" />
7474
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.71" />

MyFinance/Views/ItemsPage.cs

+26-19
Original file line numberDiff line numberDiff line change
@@ -70,34 +70,41 @@ public override void Build()
7070
.ItemTemplate(() =>
7171
new SwipeContainer()
7272
.StartSwipeItems(
73-
new SwipeItem()
73+
new SwipeItemCollection
7474
{
75-
BackgroundColor = Orange
75+
new SwipeItem()
76+
{
77+
BackgroundColor = Orange
78+
}
79+
.Caption("Düzenle")
80+
.FontAttributes(Bold)
81+
.OnTap(async (sender, e) =>
82+
{
83+
AddOrEditPageViewModel.Id = ((OperationItemsVM)e.Item).Id;
84+
await AppShell.Current.GoToAsync($"//{nameof(AddOrEditPage)}");
85+
})
7686
}
77-
.Caption("Düzenle")
78-
.FontAttributes(Bold)
79-
.OnTap(async (sender, e) =>
80-
{
81-
AddOrEditPageViewModel.Id = ((OperationItemsVM)e.Item).Id;
82-
await AppShell.Current.GoToAsync($"//{nameof(AddOrEditPage)}");
83-
})
87+
8488
)
8589
.EndSwipeItems(
86-
new SwipeItem()
90+
new SwipeItemCollection
8791
{
88-
BackgroundColor = Red
92+
new SwipeItem()
93+
{
94+
BackgroundColor = Red
95+
}
96+
.Caption("Sil")
97+
.FontAttributes(Bold)
98+
.OnTap((sender, e) =>
99+
{
100+
BindingContext.DeleteId = ((OperationItemsVM)e.Item).Id;
101+
BindingContext.IsDeletePopupShow = true;
102+
})
89103
}
90-
.Caption("Sil")
91-
.FontAttributes(Bold)
92-
.OnTap((sender, e) =>
93-
{
94-
BindingContext.DeleteId = ((OperationItemsVM)e.Item).Id;
95-
BindingContext.IsDeletePopupShow = true;
96-
})
97104
)
98105
.ItemView(
99106
new DXStackLayout()
100-
.Children_ContentProp(
107+
.Children(
101108
new Grid()
102109
.RowDefinitions(e => e.Star().Star())
103110
.ColumnDefinitions(e => e.Star(1).Star(6).Star(3))

0 commit comments

Comments
 (0)