mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Identify partitions.
This commit is contained in:
@@ -29,7 +29,21 @@
|
||||
</Border.BorderBrush>
|
||||
<Grid RowDefinitions="*,Auto">
|
||||
<Grid ColumnDefinitions="*,*"
|
||||
Grid.Row="0" />
|
||||
Grid.Row="0">
|
||||
<TreeView Grid.Column="0"
|
||||
ItemsSource="{Binding Nodes, Mode=OneWay}"
|
||||
BorderThickness="1">
|
||||
<TreeView.BorderBrush>
|
||||
<brushes:LineBrush LineStyle="DoubleLine"
|
||||
Brush="Blue" />
|
||||
</TreeView.BorderBrush>
|
||||
<TreeView.ItemTemplate>
|
||||
<TreeDataTemplate ItemsSource="{Binding SubNodes, Mode=OneWay}">
|
||||
<TextBlock Text="{Binding Title, Mode=OneWay}" />
|
||||
</TreeDataTemplate>
|
||||
</TreeView.ItemTemplate>
|
||||
</TreeView>
|
||||
</Grid>
|
||||
<TextBlock Grid.Row="1"
|
||||
Text="{Binding Status, Mode=OneWay}"
|
||||
IsVisible="{Binding IsStatusVisible, Mode=OneWay}" />
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using Aaru.Tui.ViewModels.Windows;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
|
||||
namespace Aaru.Tui.Views.Windows;
|
||||
|
||||
@@ -8,4 +10,12 @@ public partial class ImageWindow : Window
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void OnLoaded(RoutedEventArgs e)
|
||||
{
|
||||
base.OnLoaded(e);
|
||||
|
||||
(DataContext as ImageWindowViewModel)?.LoadComplete();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user