Add view for deleting item
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
<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.WarningDeleteItem"
|
||||||
|
xmlns:models="clr-namespace:ReceiptPDFBuilder.Models"
|
||||||
|
xmlns:vm="clr-namespace:ReceiptPDFBuilder.ViewModels"
|
||||||
|
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
||||||
|
x:DataType="vm:WarningDeleteItemModel">
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock TextAlignment="Center"
|
||||||
|
FontWeight="Bold">Are you sure you want to remove this item?</TextBlock>
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<Button Command="{Binding KeepItem}">
|
||||||
|
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Keep Item</TextBlock>
|
||||||
|
</Button>
|
||||||
|
<Button Command="{Binding RemoveItem}">
|
||||||
|
<TextBlock><Run Text="" FontFamily="{StaticResource FontAwesomeSolid}"/> Remove Item</TextBlock>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</UserControl>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using Avalonia;
|
||||||
|
using Avalonia.Controls;
|
||||||
|
using Avalonia.Markup.Xaml;
|
||||||
|
|
||||||
|
namespace ReceiptPDFBuilder.Views
|
||||||
|
{
|
||||||
|
public partial class WarningDeleteItem : UserControl
|
||||||
|
{
|
||||||
|
public WarningDeleteItem()
|
||||||
|
{
|
||||||
|
this.InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user