mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Add file information.
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<console:LineBrush LineStyle="DoubleLine"
|
||||
Brush="Blue" />
|
||||
</Border.BorderBrush>
|
||||
<Grid RowDefinitions="*,Auto"
|
||||
<Grid RowDefinitions="*,Auto,Auto"
|
||||
VerticalAlignment="Top">
|
||||
<Border Grid.Row="0"
|
||||
BorderThickness="1">
|
||||
@@ -81,6 +81,61 @@
|
||||
Foreground="Green" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<Border Grid.Row="2"
|
||||
BorderThickness="1"
|
||||
IsVisible="{Binding IsFileInfoAvailable, Mode=OneWay}">
|
||||
<Border.BorderBrush>
|
||||
<console:LineBrush LineStyle="DoubleLine"
|
||||
Brush="Blue" />
|
||||
</Border.BorderBrush>
|
||||
<Grid RowDefinitions="Auto, *, *, *, *, *">
|
||||
<TextBlock Text="File information"
|
||||
Grid.Row="0"
|
||||
HorizontalAlignment="Center"
|
||||
Foreground="SlateBlue" />
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
Grid.Row="1"
|
||||
IsVisible="{Binding SelectedFileIsNotDirectory, Mode=OneWay}">
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="Length: " />
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelectedFileLength, Mode=OneWay}"
|
||||
Foreground="Aqua" />
|
||||
</Grid>
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
Grid.Row="2">
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="Creation time: " />
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelectedFileCreationTime, Mode=OneWay}"
|
||||
Foreground="Aqua" />
|
||||
</Grid>
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
Grid.Row="3">
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="Last write time: " />
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelectedFileLastWriteTime, Mode=OneWay}"
|
||||
Foreground="Aqua" />
|
||||
</Grid>
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
Grid.Row="4">
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="Attributes: " />
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelectedFileAttributes, Mode=OneWay}"
|
||||
Foreground="Aqua" />
|
||||
</Grid>
|
||||
<Grid ColumnDefinitions="Auto, *"
|
||||
Grid.Row="5">
|
||||
<TextBlock Grid.Column="0"
|
||||
Text="Mode: " />
|
||||
<TextBlock Grid.Column="1"
|
||||
Text="{Binding SelectedFileUnixMode, Mode=OneWay}"
|
||||
Foreground="Aqua" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user