mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-21 16:12:01 +00:00
55 lines
1.8 KiB
XML
55 lines
1.8 KiB
XML
<Window
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:views="clr-namespace:Splitter_UI.Views"
|
|
xmlns:vm="clr-namespace:Splitter_UI.ViewModels"
|
|
xmlns:conv="clr-namespace:Splitter_UI.Converters"
|
|
x:Class="Splitter_UI.Views.MainWindow"
|
|
x:DataType="vm:MainViewModel"
|
|
x:Name="Root"
|
|
Width="1400"
|
|
Height="950"
|
|
Title="Splitter UI">
|
|
|
|
<Window.Resources>
|
|
<conv:BoolInvertConverter x:Key="BoolInvertConverter"/>
|
|
</Window.Resources>
|
|
|
|
<DockPanel>
|
|
|
|
<!-- Status Bar -->
|
|
<views:StatusBarView DockPanel.Dock="Bottom"
|
|
DataContext="{Binding StatusBar}" />
|
|
|
|
<!-- Log Pane -->
|
|
<views:LogPane DockPanel.Dock="Bottom" Height="150"
|
|
DataContext="{Binding LogPane}" />
|
|
|
|
<Grid>
|
|
<!-- Main Content -->
|
|
<Grid ColumnDefinitions="2*,3*,430" IsVisible="{Binding TransformMode, Converter={StaticResource BoolInvertConverter}}">
|
|
|
|
<!-- File List -->
|
|
<views:FileListView Grid.Column="0"
|
|
DataContext="{Binding FileList}" />
|
|
|
|
<!-- Preview -->
|
|
<views:PreviewPane Grid.Column="1"
|
|
DataContext="{Binding Preview}" />
|
|
|
|
<!-- Inspector -->
|
|
<views:InspectorPane Grid.Column="2"
|
|
DataContext="{Binding Inspector}" />
|
|
|
|
</Grid>
|
|
|
|
<!-- Progress view (replaces entire grid) -->
|
|
<views:ProgressView
|
|
DataContext="{Binding Progress}"
|
|
IsVisible="{Binding #Root.DataContext.TransformMode}"/>
|
|
</Grid>
|
|
|
|
</DockPanel>
|
|
</Window>
|
|
|