|
5 | 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | 6 | xmlns:local="clr-namespace:ScriptRes" |
7 | 7 | mc:Ignorable="d" |
8 | | - Title="MainWindow" Height="550" Width="350" ResizeMode="CanMinimize" UseLayoutRounding="False" Loaded="Window_Loaded"> |
| 8 | + Title="ScriptRes by Andrii Ihnatiuk" Height="550" Width="350" Loaded="Window_Loaded" MinWidth="310" MinHeight="550" ScrollViewer.CanContentScroll="True" MaxHeight="550"> |
9 | 9 | <Grid Margin="10"> |
10 | 10 | <Grid.RowDefinitions> |
11 | 11 | <RowDefinition Height="100"></RowDefinition> |
12 | 12 | <RowDefinition Height="80"></RowDefinition> |
13 | 13 | <RowDefinition Height="1*"></RowDefinition> |
14 | 14 | </Grid.RowDefinitions> |
15 | | - <GroupBox Header="Display Settings" Grid.Row="0" UseLayoutRounding="False" Padding="5"> |
| 15 | + <GroupBox Header="Display Settings" Grid.Row="0" Padding="5"> |
16 | 16 | <Grid> |
17 | 17 | <Grid.RowDefinitions> |
18 | 18 | <RowDefinition Height="1*"></RowDefinition> |
19 | 19 | <RowDefinition Height="1*"></RowDefinition> |
20 | 20 | </Grid.RowDefinitions> |
21 | 21 | <Grid.ColumnDefinitions> |
22 | 22 | <ColumnDefinition Width="1*"></ColumnDefinition> |
23 | | - <ColumnDefinition Width="60"></ColumnDefinition> |
24 | | - <ColumnDefinition Width="60"></ColumnDefinition> |
| 23 | + <ColumnDefinition Width="70"></ColumnDefinition> |
| 24 | + <ColumnDefinition Width="70"></ColumnDefinition> |
25 | 25 | </Grid.ColumnDefinitions> |
26 | 26 |
|
27 | 27 | <TextBlock Text="Initial resolution:" Padding="0" HorizontalAlignment="Left" VerticalAlignment="Center"/> |
28 | | - <TextBox Name="tBoxInX" Text="1920" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="1"/> |
29 | | - <TextBox Name="tBoxInY" Text="1080" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="2"/> |
| 28 | + <Grid Grid.Column="1"> |
| 29 | + <Grid.ColumnDefinitions> |
| 30 | + <ColumnDefinition Width="1*"/> |
| 31 | + <ColumnDefinition Width="50"/> |
| 32 | + </Grid.ColumnDefinitions> |
| 33 | + |
| 34 | + <TextBlock Text="X:" LineHeight="18" VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,4,0"/> |
| 35 | + <TextBox Name="tBoxInX" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="1" Padding="1.02" PreviewTextInput="TBox_AllowNumbersOnly"/> |
| 36 | + </Grid> |
| 37 | + <Grid Grid.Column="2"> |
| 38 | + <Grid.ColumnDefinitions> |
| 39 | + <ColumnDefinition Width="1*"/> |
| 40 | + <ColumnDefinition Width="50"/> |
| 41 | + </Grid.ColumnDefinitions> |
| 42 | + |
| 43 | + <TextBlock Text="Y:" LineHeight="18" VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,4,0"/> |
| 44 | + <TextBox Name="tBoxInY" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="2" Padding="1.02" PreviewTextInput="TBox_AllowNumbersOnly"/> |
| 45 | + </Grid> |
30 | 46 |
|
31 | 47 | <TextBlock Text="Preferred resolution:" Padding="0" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1"/> |
32 | | - <TextBox Name="tBoxOutX" Text="1280" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="1" Grid.Row="1"/> |
33 | | - <TextBox Name="tBoxOutY" Text="720" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="2" Grid.Row="1"/> |
| 48 | + <Grid Grid.Column="1" Grid.Row="1"> |
| 49 | + <Grid.ColumnDefinitions> |
| 50 | + <ColumnDefinition Width="1*"/> |
| 51 | + <ColumnDefinition Width="50"/> |
| 52 | + </Grid.ColumnDefinitions> |
| 53 | + |
| 54 | + <TextBlock Text="X:" LineHeight="18" VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,4,0"/> |
| 55 | + <TextBox Name="tBoxOutX" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="1" Grid.Row="1" Padding="1.02" PreviewTextInput="TBox_AllowNumbersOnly"/> |
| 56 | + </Grid> |
| 57 | + <Grid Grid.Column="2" Grid.Row="1"> |
| 58 | + <Grid.ColumnDefinitions> |
| 59 | + <ColumnDefinition Width="1*"/> |
| 60 | + <ColumnDefinition Width="50"/> |
| 61 | + </Grid.ColumnDefinitions> |
| 62 | + |
| 63 | + <TextBlock Text="Y:" LineHeight="18" VerticalAlignment="Center" TextAlignment="Right" Margin="0,0,4,0"/> |
| 64 | + <TextBox Name="tBoxOutY" HorizontalAlignment="Right" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" TextAlignment="Center" MaxLength="4" VerticalAlignment="Center" Width="50" Grid.Column="2" Grid.Row="1" Padding="1.02" PreviewTextInput="TBox_AllowNumbersOnly"/> |
| 65 | + </Grid> |
34 | 66 | </Grid> |
35 | 67 | </GroupBox> |
36 | 68 |
|
|
89 | 121 | <Button Name="btnCustomIcon" Click="BtnBrowse_Click" Grid.Row="3" Grid.Column="1" Margin="0,2" Visibility="Hidden" Height="30" Background="White" Content="Custom" VerticalAlignment="Top"/> |
90 | 122 |
|
91 | 123 | <TextBlock Grid.Row="4" Text="Shortcut name" Height="16" VerticalAlignment="Bottom" Margin="0,20,0,4"></TextBlock> |
92 | | - <TextBox Name="tBoxShortcutName" IsEnabled="False" Grid.Row="5" Grid.ColumnSpan="2" Padding="6.02" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" VerticalAlignment="Center" Foreground="DimGray"/> |
| 124 | + <TextBox Name="tBoxShortcutName" IsEnabled="False" Grid.Row="5" Grid.ColumnSpan="2" Padding="6.02" TextWrapping="NoWrap" AcceptsReturn="False" AcceptsTab="False" VerticalAlignment="Center" Foreground="DimGray" PreviewTextInput="TBoxShortcutName_ValidateShortcutName" MaxLength="50" /> |
93 | 125 |
|
94 | 126 | <Button Click="BtnCreate_Click" Grid.Row="6" Grid.ColumnSpan="2" Content="Create a shortcut" Height="30" VerticalAlignment="Bottom"></Button> |
95 | 127 | </Grid> |
|
0 commit comments