Basic Styling + Add MainWindowUIProperties.cs
- Layout with consistent spacing - Visual grouping using borders - New file for properties to be bound from MainWindow.xaml
This commit is contained in:
parent
e487e315f4
commit
d8263ec22c
|
@ -12,9 +12,9 @@
|
|||
<Button Grid.Column="1" Content=" ... "/>
|
||||
</Grid>
|
||||
<!-- ListBox Headers -->
|
||||
<TextBlock Grid.Row="1" Grid.Column="0" Text="Before"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Text="Operations"/>
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Text="After"/>
|
||||
<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"/>
|
||||
|
@ -26,19 +26,64 @@
|
|||
<ListBox/>
|
||||
|
||||
<!-- Operations Controls -->
|
||||
<Grid Grid.Row="1" ColumnDefinitions="auto,*,auto,auto,auto">
|
||||
<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 -->
|
||||
<Grid Grid.Row="2" ColumnDefinitions="*,*">
|
||||
<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>
|
||||
|
|
|
@ -3,7 +3,7 @@ using Avalonia.Markup.Xaml;
|
|||
|
||||
namespace BFR
|
||||
{
|
||||
public class MainWindow : Window
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow() =>
|
||||
InitializeComponent();
|
||||
|
|
8
BFR/MainWindowUIProperties.cs
Normal file
8
BFR/MainWindowUIProperties.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
using Avalonia.Controls;
|
||||
|
||||
namespace BFR
|
||||
{
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user