Add Edit page

This commit is contained in:
2026-02-16 14:29:32 +09:00
parent bfd90f9cd9
commit 7bed45aecf
3 changed files with 41 additions and 3 deletions
+6 -3
View File
@@ -73,14 +73,14 @@
</Style> </Style>
<Style Selector="Button.Danger"> <Style Selector="Button.Danger">
<Setter Property="Foreground" Value="White"/> <Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="#d90202"/> <Setter Property="Background" Value="#b00202"/>
<Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter"> <Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Foreground" Value="White"/> <Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="#b70000"/> <Setter Property="Background" Value="#bd0000"/>
</Style> </Style>
<Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter"> <Style Selector="^:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Foreground" Value="White"/> <Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="#9a0000"/> <Setter Property="Background" Value="#820202"/>
</Style> </Style>
</Style> </Style>
</Application.Styles> </Application.Styles>
@@ -91,6 +91,9 @@
<DataTemplate DataType="{x:Type viewModels:WarningDeleteItemModel}"> <DataTemplate DataType="{x:Type viewModels:WarningDeleteItemModel}">
<views:WarningDeleteItem/> <views:WarningDeleteItem/>
</DataTemplate> </DataTemplate>
<DataTemplate DataType="{x:Type viewModels:EditFileViewModel}">
<views:EditFile/>
</DataTemplate>
</Application.DataTemplates> </Application.DataTemplates>
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>
+20
View File
@@ -0,0 +1,20 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="ReceiptPDFBuilder.Views.EditFile"
xmlns:models="clr-namespace:ReceiptPDFBuilder.Models"
xmlns:vm="clr-namespace:ReceiptPDFBuilder.ViewModels"
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
x:DataType="vm:EditFileViewModel">
<StackPanel HorizontalAlignment="Stretch"
Margin="6"
Spacing="8">
<Label Content="Edit File"
HorizontalAlignment="Center"
FontSize="16"
FontWeight="Bold"/>
</StackPanel>
</UserControl>
+15
View File
@@ -0,0 +1,15 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace ReceiptPDFBuilder.Views
{
public partial class EditFile : UserControl
{
public EditFile()
{
this.InitializeComponent();
}
}
}