Wire up file size
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<SettingsExpanderItem
|
||||
x:Class="Wallet.Avalonia.AttachmentEntryView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
Welcome to Avalonia!
|
||||
</SettingsExpanderItem>
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:Wallet"
|
||||
x:DataType="vm:LocalAttachmentEntryViewModel"
|
||||
Description="{Binding Size, Converter={FileSizeNameConverter}}" />
|
||||
|
||||
@@ -31,7 +31,7 @@ public partial class AttachmentEntryCollectionViewModel(IServiceProvider provide
|
||||
string path = file.Path;
|
||||
DateTimeOffset created = DateTimeOffset.Now;
|
||||
string name = file.Name;
|
||||
int size = file.Size;
|
||||
long size = file.Size;
|
||||
|
||||
Attachment attachment = new()
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ public partial class LocalAttachmentEntryViewModel(IServiceProvider provider,
|
||||
IDisposer disposer,
|
||||
string path,
|
||||
DateTimeOffset created,
|
||||
int size,
|
||||
long size,
|
||||
string name) : Observable(provider, factory, mediator, publisher, subscriber, disposer),
|
||||
IAttachmentEntryViewModel
|
||||
{
|
||||
@@ -22,7 +22,7 @@ public partial class LocalAttachmentEntryViewModel(IServiceProvider provider,
|
||||
private string path = path;
|
||||
|
||||
[ObservableProperty]
|
||||
private int size = size;
|
||||
private long size = size;
|
||||
|
||||
[ObservableProperty]
|
||||
private string name = name;
|
||||
|
||||
Reference in New Issue
Block a user