WheresMyMoney/WheresMyMoney.Maui/PlannedPaymentsPage.xaml
Kapitan 2d69a4b018
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
Version 1.0.3
- Modify planned payment
- minor bug fixes
2025-01-26 14:53:16 +01:00

31 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="using:WheresMyMoney.Maui"
x:Class="WheresMyMoney.Maui.PlannedPaymentsPage">
<ContentPage.ToolbarItems>
<ToolbarItem
IconImageSource="{FontImageSource Glyph=+, FontFamily=FontAwesome, Size=32, Color={AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource PrimaryDark}} }"
Order="Primary"
Clicked="InsertPlannedPayment_OnClicked" />
</ContentPage.ToolbarItems>
<CollectionView ItemsSource="{Binding FullPlannedPaymentViewModels}" x:DataType="local:PlannedPaymentsPage">
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="local:FullPlannedPaymentViewModel">
<Border Margin="10,15" Padding="10" StrokeThickness="0" Background="Transparent">
<FlyoutBase.ContextFlyout>
<MenuFlyout>
<MenuFlyoutItem Text="Modyfikuj" Clicked="ModifyPlannedPayment_OnClicked"
CommandParameter="{Binding Id}" />
<MenuFlyoutItem Text="Usuń" Clicked="RemovePlannedPayment_OnClicked"
CommandParameter="{Binding Id}" />
</MenuFlyout>
</FlyoutBase.ContextFlyout>
<local:PlannedPaymentContent />
</Border>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>