add file details
MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml
</DrawingGroup>
</dialogs:ResourceSelectorConverter>
</UserControl.Resources>
- <UserControl.DataTemplates>
- <DataTemplate DataType="internal:ManagedFileChooserItemViewModel">
- <StackPanel Background="Transparent" Orientation="Horizontal"
- Cursor="Hand" Spacing="4">
-
- <DrawingPresenter Width="16" Height="16" Drawing="{Binding IconKey, Converter={StaticResource Icons}}"/>
- <TextBlock Text="{Binding DisplayName}"/>
- </StackPanel>
- </DataTemplate>
- </UserControl.DataTemplates>
<DockPanel>
<DockPanel DockPanel.Dock="Top" Margin="5">
<dialogs:ChildFitter DockPanel.Dock="Right" Width="{Binding ElementName=Location, Path=Bounds.Height}">
/>
<ListBox Margin="5" BorderBrush="Transparent" x:Name="QuickLinks" Items="{Binding QuickLinks}"
SelectedIndex="{Binding QuickLinksSelectedIndex}"
- DockPanel.Dock="Left" Background="{DynamicResource ThemeControlMidBrush}" Focusable="False" />
+ DockPanel.Dock="Left" Background="{DynamicResource ThemeControlMidBrush}" Focusable="False">
+ <ListBox.ItemTemplate>
+ <DataTemplate>
+ <StackPanel Spacing="4" Orientation="Horizontal" Background="Transparent" Cursor="Hand">
+ <DrawingPresenter Width="16" Height="16" Drawing="{Binding IconKey, Converter={StaticResource Icons}}"/>
+ <TextBlock Text="{Binding DisplayName}"/>
+ </StackPanel>
+ </DataTemplate>
+ </ListBox.ItemTemplate>
+ </ListBox>
+ <DockPanel Grid.IsSharedSizeScope="True">
+ <Grid DockPanel.Dock="Top">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="20" SharedSizeGroup="Icon" />
+ <ColumnDefinition Width="500" SharedSizeGroup="Name" />
+ <ColumnDefinition Width="200" SharedSizeGroup="Modified" />
+ <ColumnDefinition Width="150" SharedSizeGroup="Type" />
+ <ColumnDefinition Width="150" SharedSizeGroup="Size" />
+ </Grid.ColumnDefinitions>
+ <TextBlock Grid.Column="1" Text="Name" />
+ <TextBlock Grid.Column="2" Text="Date Modified" />
+ <TextBlock Grid.Column="3" Text="Type" />
+ <TextBlock Grid.Column="4" Text="Size" />
+ </Grid>
<ListBox x:Name="Files"
VirtualizationMode="Simple"
Items="{Binding Items}"
Margin="5"
SelectionMode="{Binding SelectionMode}"
- SelectedItems="{Binding SelectedItems}"/>
+ SelectedItems="{Binding SelectedItems}">
+ <ListBox.ItemTemplate>
+ <DataTemplate>
+ <Grid Background="Transparent" Cursor="Hand">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition SharedSizeGroup="Icon" />
+ <ColumnDefinition SharedSizeGroup="Name" />
+ <ColumnDefinition SharedSizeGroup="Modified" />
+ <ColumnDefinition SharedSizeGroup="Type" />
+ <ColumnDefinition SharedSizeGroup="Size" />
+ </Grid.ColumnDefinitions>
+ <DrawingPresenter Width="16" Height="16" Drawing="{Binding IconKey, Converter={StaticResource Icons}}"/>
+ <TextBlock Grid.Column="1" Text="{Binding DisplayName}"/>
+ <TextBlock Grid.Column="2" Text="{Binding Modified}" />
+ <TextBlock Grid.Column="3" Text="{Binding Type}" />
+ <TextBlock Grid.Column="4" Text="{Binding Size}" />
+ </Grid>
+ </DataTemplate>
+ </ListBox.ItemTemplate>
+ </ListBox>
+ </DockPanel>
</DockPanel>
</UserControl>

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserItemViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserItemViewModel.cs
using ReactiveUI;
+using System;
using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.ManagedDialogs
@@ -8,6 +9,9 @@ namespace WalletWasabi.Gui.ManagedDialogs
private string _displayName;
private string _path;
private bool _isDirectory;
+ private DateTime _modified;
+ private string _type;
+ private long _size;
public string DisplayName
{
@@ -21,6 +25,24 @@ namespace WalletWasabi.Gui.ManagedDialogs
set => this.RaiseAndSetIfChanged(ref _path, value);
}
+ public DateTime Modified
+ {
+ get => _modified;
+ set => this.RaiseAndSetIfChanged(ref _modified, value);
+ }
+
+ public string Type
+ {
+ get => _type;
+ set => this.RaiseAndSetIfChanged(ref _type, value);
+ }
+
+ public long Size
+ {
+ get => _size;
+ set => this.RaiseAndSetIfChanged(ref _size, value);
+ }
+
public string IconKey => IsDirectory ? "Icon_Folder" : "Icon_File";
public bool IsDirectory

add file details