File attachment UI work

This commit is contained in:
TheXamlGuy
2024-07-24 21:51:51 +01:00
parent e28e0d615a
commit c6f71c3d0b
13 changed files with 103 additions and 18 deletions
+2
View File
@@ -192,6 +192,8 @@ public partial class App : Application
services.AddTemplate<CommentEntryCollectionViewModel, CommentEntryCollectionView>();
services.AddTemplate<AttachmentEntryCollectionViewModel, AttachmentEntryCollectionView>();
services.AddTemplate<AttachmentEntryViewModel, AttachmentEntryView>();
services.AddTemplate<LocalAttachmentEntryViewModel, AttachmentEntryView>();
services.AddTemplate<TextEntryViewModel, TextEntryView>();
services.AddTemplate<PasswordEntryViewModel, PasswordEntryView>();
@@ -0,0 +1,6 @@
<SettingsExpanderItem
x:Class="Wallet.Avalonia.AttachmentEntryView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Welcome to Avalonia!
</SettingsExpanderItem>
@@ -0,0 +1,10 @@
using Toolkit.UI.Controls.Avalonia;
namespace Wallet.Avalonia;
public partial class AttachmentEntryView :
SettingsExpanderItem
{
public AttachmentEntryView() =>
InitializeComponent();
}
+2 -2
View File
@@ -4,5 +4,5 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:CommentEntryViewModel"
Content="{Binding Value}"
Description="{Binding Key}" />
Content="{Binding Comment}"
Description="{Binding Created}" />