|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | 5 | xmlns:local="clr-namespace:ResoDrive.App" |
| 6 | + xmlns:controls="clr-namespace:ResoDrive.App.Controls" |
6 | 7 | Title="{x:Static local:ProductInfo.Name}" |
7 | 8 | Width="920" |
8 | 9 | Height="610" |
|
181 | 182 | <Grid.ColumnDefinitions> |
182 | 183 | <ColumnDefinition Width="*" /> |
183 | 184 | <ColumnDefinition Width="Auto" /> |
| 185 | + <ColumnDefinition Width="Auto" /> |
184 | 186 | </Grid.ColumnDefinitions> |
185 | 187 | <StackPanel> |
186 | 188 | <TextBlock Style="{StaticResource Title}" Text="Drives" /> |
|
207 | 209 | </StackPanel> |
208 | 210 | </Button> |
209 | 211 | </StackPanel> |
| 212 | + <controls:ScrollBarGutter Grid.Column="2" ScrollOwner="{Binding ElementName=MountRows}" /> |
210 | 213 | </Grid> |
211 | | - <ListBox Grid.Row="1" Style="{StaticResource Rows}" ItemsSource="{Binding Mounts}"> |
| 214 | + <ListBox x:Name="MountRows" Grid.Row="1" Style="{StaticResource Rows}" ItemsSource="{Binding Mounts}"> |
212 | 215 | <ListBox.ItemTemplate> |
213 | 216 | <DataTemplate DataType="{x:Type local:MountRow}"> |
214 | 217 | <Border |
|
305 | 308 | <RowDefinition Height="*" /> |
306 | 309 | </Grid.RowDefinitions> |
307 | 310 | <Grid> |
| 311 | + <Grid.ColumnDefinitions> |
| 312 | + <ColumnDefinition Width="*" /> |
| 313 | + <ColumnDefinition Width="Auto" /> |
| 314 | + <ColumnDefinition Width="Auto" /> |
| 315 | + </Grid.ColumnDefinitions> |
308 | 316 | <StackPanel> |
309 | 317 | <TextBlock Style="{StaticResource Title}" Text="Sync" /> |
310 | 318 | <TextBlock Style="{StaticResource Subtitle}" Text="{Binding JobSummary}" /> |
311 | 319 | </StackPanel> |
312 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,4,0"> |
| 320 | + <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,0,4,0"> |
313 | 321 | <Button Style="{StaticResource AccentButton}" Click="NewJob_Click" AutomationProperties.Name="Create sync job"> |
314 | 322 | <StackPanel Orientation="Horizontal"> |
315 | 323 | <TextBlock Style="{StaticResource InlineButtonGlyph}" Text="" /> |
316 | 324 | <TextBlock Text="New job" VerticalAlignment="Center" /> |
317 | 325 | </StackPanel> |
318 | 326 | </Button> |
319 | 327 | </StackPanel> |
| 328 | + <controls:ScrollBarGutter Grid.Column="2" ScrollOwner="{Binding ElementName=JobRows}" /> |
320 | 329 | </Grid> |
321 | | - <ListBox Grid.Row="1" Style="{StaticResource Rows}" ItemsSource="{Binding Jobs}"> |
| 330 | + <ListBox x:Name="JobRows" Grid.Row="1" Style="{StaticResource Rows}" ItemsSource="{Binding Jobs}"> |
322 | 331 | <ListBox.ItemTemplate> |
323 | 332 | <DataTemplate DataType="{x:Type local:SyncRow}"> |
324 | 333 | <Border Style="{StaticResource RowCard}" MinHeight="58" AutomationProperties.Name="{Binding DetailText}"> |
|
411 | 420 | <Grid.ColumnDefinitions> |
412 | 421 | <ColumnDefinition Width="*" /> |
413 | 422 | <ColumnDefinition Width="Auto" /> |
| 423 | + <ColumnDefinition Width="Auto" /> |
414 | 424 | </Grid.ColumnDefinitions> |
415 | 425 | <StackPanel> |
416 | 426 | <TextBlock Style="{StaticResource Title}" Text="Log" /> |
|
498 | 508 | <Grid.ColumnDefinitions> |
499 | 509 | <ColumnDefinition Width="*" /> |
500 | 510 | <ColumnDefinition Width="Auto" /> |
| 511 | + <ColumnDefinition Width="Auto" /> |
501 | 512 | </Grid.ColumnDefinitions> |
502 | 513 | <StackPanel> |
503 | 514 | <TextBlock Style="{StaticResource Title}" Text="Settings" /> |
|
517 | 528 | <TextBlock Text="About" VerticalAlignment="Center" /> |
518 | 529 | </StackPanel> |
519 | 530 | </Button> |
| 531 | + <controls:ScrollBarGutter Grid.Column="2" ScrollOwner="{Binding ElementName=SettingsScrollViewer}" /> |
520 | 532 | </Grid> |
521 | | - <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"> |
| 533 | + <ScrollViewer x:Name="SettingsScrollViewer" Grid.Row="1" VerticalScrollBarVisibility="Auto"> |
522 | 534 | <StackPanel Margin="0,0,4,0"> |
523 | 535 | <Border Style="{StaticResource Card}" Padding="16,12" Margin="0,0,0,10"> |
524 | 536 | <StackPanel> |
|
0 commit comments