|
396 | 396 | </ItemsControl> |
397 | 397 | </Border> |
398 | 398 |
|
| 399 | + <ItemsControl |
| 400 | + Margin="30,32,12,7" VerticalAlignment="Top" |
| 401 | + MinHeight="105" MinWidth="220" HorizontalAlignment="Left" |
| 402 | + ItemsSource="{Binding SourceOptions}" |
| 403 | + Visibility="{Binding SourceOptionsVisible, Converter={StaticResource VisibilityConverter}}"> |
| 404 | + <ItemsControl.ItemTemplate> |
| 405 | + <DataTemplate> |
| 406 | + <Button |
| 407 | + HorizontalContentAlignment="Left" |
| 408 | + Command="{Binding ChooseSourceCommand}"> |
| 409 | + <StackPanel Orientation="Horizontal"> |
| 410 | + <Image Source="{Binding Image}" Visibility="{Binding ImageVisible, Converter={StaticResource VisibilityConverter}}" Width="16" Height="16" Margin="4,2,0,2" /> |
| 411 | + <TextBlock Text="{Binding Text}" Style="{StaticResource PlainTitle}" Margin="4" /> |
| 412 | + </StackPanel> |
| 413 | + </Button> |
| 414 | + </DataTemplate> |
| 415 | + </ItemsControl.ItemTemplate> |
| 416 | + <ItemsControl.Template> |
| 417 | + <ControlTemplate> |
| 418 | + <!--<ScrollViewer Margin="0" Focusable="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">--> |
| 419 | + <StackPanel Orientation="Vertical" Margin="2" IsItemsHost="True" /> |
| 420 | + <!--</ScrollViewer>--> |
| 421 | + </ControlTemplate> |
| 422 | + </ItemsControl.Template> |
| 423 | + </ItemsControl> |
| 424 | + |
399 | 425 | <StackPanel Margin="30,37,12,7" VerticalAlignment="Top"> |
400 | 426 | <TextBlock |
401 | 427 | Text="An error occurred while scanning." |
402 | 428 | Style="{StaticResource ScanStatus}" |
403 | 429 | Foreground="Red" |
404 | 430 | Visibility="{Binding ScanError, Converter={StaticResource VisibilityConverter}}"/> |
405 | | - <ItemsControl |
406 | | - Height="98" MinWidth="220" HorizontalAlignment="Left" |
407 | | - ItemsSource="{Binding SourceOptions}" |
408 | | - Visibility="{Binding SourceOptionsVisible, Converter={StaticResource VisibilityConverter}}"> |
409 | | - <ItemsControl.ItemTemplate> |
410 | | - <DataTemplate> |
411 | | - <Button |
412 | | - HorizontalContentAlignment="Left" |
413 | | - Command="{Binding ChooseSourceCommand}"> |
414 | | - <StackPanel Orientation="Horizontal"> |
415 | | - <Image Source="{Binding Image}" Visibility="{Binding ImageVisible, Converter={StaticResource VisibilityConverter}}" Width="16" Height="16" Margin="4,2,0,2" /> |
416 | | - <TextBlock Text="{Binding Text}" Style="{StaticResource PlainTitle}" Margin="4" /> |
417 | | - </StackPanel> |
418 | | - </Button> |
419 | | - </DataTemplate> |
420 | | - </ItemsControl.ItemTemplate> |
421 | | - <ItemsControl.Template> |
422 | | - <ControlTemplate> |
423 | | - <ScrollViewer Margin="0" Focusable="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> |
424 | | - <StackPanel Orientation="Vertical" Margin="2" IsItemsHost="True" /> |
425 | | - </ScrollViewer> |
426 | | - </ControlTemplate> |
427 | | - </ItemsControl.Template> |
428 | | - </ItemsControl> |
| 431 | + |
429 | 432 |
|
430 | 433 | <Grid Visibility="{Binding HasVideoSource, Converter={StaticResource VisibilityConverter}}"> |
431 | 434 | <Grid.ColumnDefinitions> |
|
0 commit comments