-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomRatioDialog.xaml
More file actions
30 lines (28 loc) · 1.6 KB
/
CustomRatioDialog.xaml
File metadata and controls
30 lines (28 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<Window x:Class="ScreenGrid.CustomRatioDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Custom Ratio"
Width="400" Height="220"
WindowStartupLocation="CenterOwner"
Background="#1e1e2e" Foreground="White"
ResizeMode="NoResize">
<StackPanel Margin="20">
<TextBlock Text="Enter a name for this row:" FontSize="13" Foreground="#aab" Margin="0,0,0,4"/>
<TextBox x:Name="TxtName" Height="30" FontSize="13"
Background="#2a2a3e" Foreground="White" BorderBrush="#444466"
Padding="6,4" VerticalContentAlignment="Center" Margin="0,0,0,12"/>
<TextBlock Text="Enter column ratios separated by colons (e.g. 2:1 or 3:2:1):"
FontSize="13" Foreground="#aab" Margin="0,0,0,4"/>
<TextBox x:Name="TxtRatios" Height="30" FontSize="13"
Background="#2a2a3e" Foreground="White" BorderBrush="#444466"
Padding="6,4" VerticalContentAlignment="Center" Margin="0,0,0,16"/>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Cancel" Width="80" Height="30" Margin="0,0,8,0"
Click="OnCancel" Background="#2d2d44" Foreground="White"
BorderBrush="#444466" Cursor="Hand"/>
<Button Content="Add" Width="80" Height="30"
Click="OnAdd" Background="#0066cc" Foreground="White"
BorderBrush="#0080ff" Cursor="Hand"/>
</StackPanel>
</StackPanel>
</Window>