|
14 | 14 | <Grid Margin="16"> |
15 | 15 | <Grid.RowDefinitions> |
16 | 16 | <RowDefinition Height="Auto" /> |
17 | | - <RowDefinition Height="Auto" /> |
| 17 | + <RowDefinition Height="1.5*" /> |
18 | 18 | <RowDefinition Height="Auto" /> |
19 | 19 | <RowDefinition Height="*" /> |
20 | 20 | </Grid.RowDefinitions> |
|
38 | 38 | <RowDefinition Height="40" /> |
39 | 39 | <RowDefinition Height="40" /> |
40 | 40 | <RowDefinition Height="40" /> |
41 | | - <RowDefinition Height="40" /> |
42 | | - <RowDefinition Height="40" /> |
| 41 | + <RowDefinition Height="80" /> |
43 | 42 | <RowDefinition Height="40" MaxHeight="40" /> |
44 | 43 | <RowDefinition Height="Auto" /> |
45 | 44 | </Grid.RowDefinitions> |
|
140 | 139 | Style="{StaticResource MaterialDesignFilterChipAccentOutlineCheckBox}" |
141 | 140 | Content="Auto-generated" /> |
142 | 141 | </StackPanel> |
| 142 | + |
143 | 143 | <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="1"> |
144 | | - <ToggleButton x:Name="metadataToggle" |
145 | | - Margin="4"/> |
| 144 | + <ToggleButton x:Name="metadataToggle" Margin="4"/> |
146 | 145 | <TextBlock VerticalAlignment="Center" Margin="4">Add metadata</TextBlock> |
147 | | - <ToggleButton x:Name="thumbnailToggle" |
148 | | - Margin="8 4 4 4"/> |
| 146 | + |
| 147 | + <ToggleButton x:Name="thumbnailToggle" Margin="8 4 4 4"/> |
149 | 148 | <TextBlock VerticalAlignment="Center" Margin="4">Download thumbnail</TextBlock> |
150 | | - <ToggleButton x:Name="playlistToggle" |
151 | | - Margin="8 4 4 4"/> |
| 149 | + |
| 150 | + <ToggleButton x:Name="playlistToggle" Margin="8 4 4 4"/> |
152 | 151 | <TextBlock VerticalAlignment="Center" Margin="4">Download playlist</TextBlock> |
153 | 152 | <TextBox x:Name="playlistItemsTextBox" |
154 | 153 | Margin="4" |
155 | 154 | Width="96" |
156 | 155 | VerticalAlignment="Center" |
157 | 156 | materialDesign:HintAssist.Hint="Items (optional)"/> |
158 | 157 | </StackPanel> |
159 | | - <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1"> |
| 158 | + |
| 159 | + <Grid Grid.Row="4" Grid.Column="1"> |
| 160 | + <Grid.RowDefinitions> |
| 161 | + <RowDefinition Height="*"/> |
| 162 | + <RowDefinition Height="*"/> |
| 163 | + </Grid.RowDefinitions> |
| 164 | + |
| 165 | + <Grid.ColumnDefinitions> |
| 166 | + <ColumnDefinition Width="Auto"/> |
| 167 | + <ColumnDefinition Width="Auto"/> |
| 168 | + <ColumnDefinition Width="*"/> |
| 169 | + <ColumnDefinition Width="Auto"/> |
| 170 | + <ColumnDefinition Width="Auto"/> |
| 171 | + </Grid.ColumnDefinitions> |
| 172 | + |
160 | 173 | <ToggleButton x:Name="outputTemplateToggle" |
| 174 | + Grid.Row="0" |
| 175 | + Grid.Column="0" |
161 | 176 | Margin="4"/> |
162 | | - <TextBlock VerticalAlignment="Center" Margin="4">Custom output template</TextBlock> |
| 177 | + |
| 178 | + <TextBlock Grid.Row="0" |
| 179 | + Grid.Column="1" |
| 180 | + Margin="4" |
| 181 | + VerticalAlignment="Center"> |
| 182 | + Custom output template |
| 183 | + </TextBlock> |
| 184 | + |
163 | 185 | <ComboBox x:Name="outputTemplateComboBox" |
| 186 | + Grid.Row="0" |
| 187 | + Grid.Column="2" |
| 188 | + Margin="4" |
164 | 189 | IsEditable="True" |
165 | 190 | IsReadOnly="False" |
166 | 191 | StaysOpenOnEdit="True" |
167 | | - Margin="4" |
168 | | - Width="200" |
169 | 192 | VerticalAlignment="Center"> |
170 | 193 | <ComboBox.ItemsPanel> |
171 | 194 | <ItemsPanelTemplate> |
172 | 195 | <VirtualizingStackPanel /> |
173 | 196 | </ItemsPanelTemplate> |
174 | 197 | </ComboBox.ItemsPanel> |
175 | 198 | </ComboBox> |
| 199 | + |
176 | 200 | <Button x:Name="resetOutputTemplateButton" |
| 201 | + Grid.Row="0" |
| 202 | + Grid.Column="3" |
177 | 203 | Margin="4" |
178 | 204 | Style="{StaticResource MaterialDesignFlatButton}" |
179 | 205 | Content="Reset"/> |
180 | | - </StackPanel> |
181 | | - <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1"> |
| 206 | + |
182 | 207 | <ToggleButton x:Name="pathToggle" |
| 208 | + Grid.Row="1" |
| 209 | + Grid.Column="0" |
183 | 210 | Margin="4"/> |
184 | | - <TextBlock VerticalAlignment="Center" Margin="4">Custom download path</TextBlock> |
| 211 | + |
| 212 | + <TextBlock Grid.Row="1" |
| 213 | + Grid.Column="1" |
| 214 | + Margin="4" |
| 215 | + VerticalAlignment="Center">Custom download path</TextBlock> |
| 216 | + |
185 | 217 | <ComboBox x:Name="pathComboBox" |
| 218 | + Grid.Row="1" |
| 219 | + Grid.Column="2" |
| 220 | + Margin="4" |
186 | 221 | IsEditable="True" |
187 | 222 | IsReadOnly="False" |
188 | 223 | StaysOpenOnEdit="True" |
189 | | - Margin="4" |
190 | | - Width="300" |
191 | 224 | VerticalAlignment="Center"> |
192 | 225 | <ComboBox.ItemsPanel> |
193 | 226 | <ItemsPanelTemplate> |
194 | 227 | <VirtualizingStackPanel /> |
195 | 228 | </ItemsPanelTemplate> |
196 | 229 | </ComboBox.ItemsPanel> |
197 | 230 | </ComboBox> |
| 231 | + |
198 | 232 | <Button x:Name="browseButton" |
| 233 | + Grid.Row="1" |
| 234 | + Grid.Column="3" |
199 | 235 | Margin="4" |
200 | 236 | Style="{StaticResource MaterialDesignFlatButton}" |
201 | 237 | Content="Browse"/> |
| 238 | + |
202 | 239 | <Button x:Name="openFolderButton" |
| 240 | + Grid.Row="1" |
| 241 | + Grid.Column="4" |
203 | 242 | Margin="4" |
204 | 243 | Style="{StaticResource MaterialDesignFlatButton}" |
205 | 244 | Content="Open Folder"/> |
206 | | - </StackPanel> |
| 245 | + </Grid> |
207 | 246 |
|
208 | | - <TextBlock Grid.Row="6" |
| 247 | + <TextBlock Grid.Row="5" |
209 | 248 | Grid.Column="0" |
210 | 249 | Margin="8" |
211 | 250 | VerticalAlignment="Center" |
212 | 251 | Style="{StaticResource MaterialDesignSubtitle1TextBlock}"> |
213 | 252 | Arguments |
214 | 253 | </TextBlock> |
215 | | - <ItemsControl Grid.Row="6" |
| 254 | + <ItemsControl Grid.Row="5" |
216 | 255 | Grid.RowSpan="2" |
217 | 256 | Grid.Column="1" |
218 | 257 | x:Name="argumentsItemsControl"> |
|
0 commit comments