bfr/BFR/MainWindow.xaml
adroslice d8263ec22c Basic Styling + Add MainWindowUIProperties.cs
- Layout with consistent spacing
- Visual grouping using borders
- New file for properties to be bound from MainWindow.xaml
2019-11-13 23:01:08 +01:00

90 lines
3.4 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" MinWidth="720" MinHeight="480"
x:Class="BFR.MainWindow"
Title="BFR">
<Grid RowDefinitions="auto,auto,*" ColumnDefinitions="*,*,*">
<!-- Directory Selection and TODO:Filter -->
<Grid Grid.ColumnSpan="3" ColumnDefinitions="*,auto">
<TextBox Grid.Column="0" IsEnabled="False" Text="C:/Example.File.png"/>
<Button Grid.Column="1" Content=" ... "/>
</Grid>
<!-- ListBox Headers -->
<TextBox Classes="HeaderTextBox" Grid.Row="1" Grid.Column="0" Text="Before"/>
<TextBox Classes="HeaderTextBox" Grid.Row="1" Grid.Column="1" Text="Operations"/>
<TextBox Classes="HeaderTextBox" Grid.Row="1" Grid.Column="2" Text="After"/>
<!-- Current and Preview ListBoxes -->
<ListBox Grid.Row="2" Grid.Column="0"/>
<ListBox Grid.Row="2" Grid.Column="2"/>
<!-- Middle Section (Operations, Controls) -->
<Grid Grid.Row="2" Grid.Column="1" RowDefinitions="*,auto,auto">
<!-- Operations ListBox -->
<ListBox/>
<!-- Operations Controls -->
<Border Grid.Row="1" Classes="ConnectUp">
<Grid ColumnDefinitions="auto,*,auto,auto,auto">
<TextBlock Grid.Column="0" Text="New:"/>
<ComboBox Grid.Column="1"/>
<Button Grid.Column="2" Content=" + "/>
<Button Grid.Column="3" Content=" - "/>
<ButtonSpinner Grid.Column="4"/>
</Grid>
</Border>
<!-- Commit and Undo Buttons -->
<Border Grid.Row="2" Classes="ConnectUp">
<Grid ColumnDefinitions="*,*">
<Button Grid.Column="0" Content="Undo"/>
<Button Grid.Column="1" Content="Rename All"/>
</Grid>
</Border>
</Grid>
</Grid>
<Window.Styles>
<Style Selector="Grid > ListBox">
<Setter Property="Margin" Value="4"/>
</Style>
<Style Selector="Grid > TextBox">
<Setter Property="Margin" Value="4"/>
<Setter Property="Grid.Column" Value="1"/>
</Style>
<Style Selector="Grid > Button">
<Setter Property="Margin" Value="4"/>
<Setter Property="Grid.Column" Value="1"/>
</Style>
<Style Selector="Grid > ButtonSpinner">
<Setter Property="Margin" Value="4"/>
<Setter Property="Grid.Column" Value="1"/>
</Style>
<Style Selector="Grid > ComboBox">
<Setter Property="Margin" Value="4"/>
<Setter Property="Grid.Column" Value="1"/>
</Style>
<Style Selector="Grid > TextBlock">
<Setter Property="Margin" Value="8"/>
<Setter Property="Grid.Column" Value="0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Grid > TextBox.HeaderTextBox">
<Setter Property="Margin" Value="4,4,4,-5"/>
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="FontWeight" Value="Bold"/>
</Style>
<Style Selector="Grid > Border">
<Setter Property="Margin" Value="4"/>
<Setter Property="Padding" Value="4"/>
<Setter Property="BorderBrush" Value="Gray"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="Grid > Border.ConnectUp">
<Setter Property="Margin" Value="4,-5,4,4"/>
</Style>
</Window.Styles>
</Window>