|
230 | 230 | </Grid.RowDefinitions> |
231 | 231 | <Menu Height="22"> |
232 | 232 | <MenuItem Header="File"> |
| 233 | + <MenuItem |
| 234 | + Header="Open Video File..." |
| 235 | + Command="{Binding OpenFileCommand}" |
| 236 | + InputGestureText="Ctrl+O"> |
| 237 | + <MenuItem.Icon> |
| 238 | + <Image Source="/Icons/video-file.png" Width="16" Height="16" /> |
| 239 | + </MenuItem.Icon> |
| 240 | + </MenuItem> |
| 241 | + <MenuItem |
| 242 | + Header="Open DVD/Blu-ray Folder..." |
| 243 | + Command="{Binding OpenFolderCommand}" |
| 244 | + InputGestureText="Ctrl+F"> |
| 245 | + <MenuItem.Icon> |
| 246 | + <Image Source="/Icons/folder.png" Width="16" Height="16" /> |
| 247 | + </MenuItem.Icon> |
| 248 | + </MenuItem> |
233 | 249 | <MenuItem |
234 | 250 | Header="Enqueue Multiple Files..." |
235 | 251 | Command="{Binding QueueFilesCommand}" |
|
277 | 293 | </MenuItem> |
278 | 294 | </MenuItem> |
279 | 295 | </Menu> |
| 296 | + <Border |
| 297 | + Grid.Row="1" |
| 298 | + Grid.RowSpan="2" |
| 299 | + Name="sourceSelectionMenu" |
| 300 | + MinWidth="220" HorizontalAlignment="Left" |
| 301 | + Margin="30,32,0,0" VerticalAlignment="Top" Canvas.ZIndex="20" |
| 302 | + Background="White" BorderBrush="Black" BorderThickness="1" |
| 303 | + Visibility="{Binding SourceSelectionExpanded, Converter={StaticResource VisibilityConverter}}"> |
| 304 | + <Border.Effect> |
| 305 | + <DropShadowEffect ShadowDepth="3" BlurRadius="3" Direction="310" Opacity="0.4" /> |
| 306 | + </Border.Effect> |
| 307 | + <ItemsControl |
| 308 | + ItemsSource="{Binding SourceOptions}"> |
| 309 | + <ItemsControl.ItemTemplate> |
| 310 | + <DataTemplate> |
| 311 | + <Grid Style="{StaticResource DropDownContainer}"> |
| 312 | + <Grid.InputBindings> |
| 313 | + <MouseBinding |
| 314 | + MouseAction="LeftClick" |
| 315 | + Command="{Binding ChooseSourceCommand}" /> |
| 316 | + </Grid.InputBindings> |
| 317 | + <StackPanel Orientation="Horizontal" Margin="2"> |
| 318 | + <Image Source="{Binding Image}" Visibility="{Binding ImageVisible, Converter={StaticResource VisibilityConverter}}" Width="16" Height="16" Margin="4,2,0,2" /> |
| 319 | + <TextBlock Text="{Binding Text}" Margin="4" Style="{StaticResource DropDownText}" /> |
| 320 | + </StackPanel> |
| 321 | + </Grid> |
| 322 | + </DataTemplate> |
| 323 | + </ItemsControl.ItemTemplate> |
| 324 | + <ItemsControl.Template> |
| 325 | + <ControlTemplate> |
| 326 | + <StackPanel Orientation="Vertical" IsItemsHost="True" /> |
| 327 | + </ControlTemplate> |
| 328 | + </ItemsControl.Template> |
| 329 | + </ItemsControl> |
| 330 | + </Border> |
| 331 | + |
280 | 332 | <Grid Grid.Row="1" MinHeight="144"> |
281 | 333 | <StackPanel Orientation="Horizontal" Height="27" Margin="12,6,12,0" VerticalAlignment="Top"> |
282 | 334 | <TextBlock |
|
362 | 414 | Content="Cancel" |
363 | 415 | Command="{Binding CancelScanCommand}"/> |
364 | 416 | </Grid> |
365 | | - <Border |
366 | | - Name="sourceSelectionMenu" |
367 | | - MinWidth="220" HorizontalAlignment="Left" |
368 | | - Margin="30,32,0,0" VerticalAlignment="Top" Canvas.ZIndex="20" |
369 | | - Background="White" BorderBrush="Black" BorderThickness="1" |
370 | | - Visibility="{Binding SourceSelectionExpanded, Converter={StaticResource VisibilityConverter}}"> |
371 | | - <Border.Effect> |
372 | | - <DropShadowEffect ShadowDepth="3" BlurRadius="3" Direction="310" Opacity="0.4" /> |
373 | | - </Border.Effect> |
374 | | - <ItemsControl |
375 | | - ItemsSource="{Binding SourceOptions}"> |
376 | | - <ItemsControl.ItemTemplate> |
377 | | - <DataTemplate> |
378 | | - <Grid Style="{StaticResource DropDownContainer}"> |
379 | | - <Grid.InputBindings> |
380 | | - <MouseBinding |
381 | | - MouseAction="LeftClick" |
382 | | - Command="{Binding ChooseSourceCommand}" /> |
383 | | - </Grid.InputBindings> |
384 | | - <StackPanel Orientation="Horizontal" Margin="2"> |
385 | | - <Image Source="{Binding Image}" Visibility="{Binding ImageVisible, Converter={StaticResource VisibilityConverter}}" Width="16" Height="16" Margin="4,2,0,2" /> |
386 | | - <TextBlock Text="{Binding Text}" Margin="4" Style="{StaticResource DropDownText}" /> |
387 | | - </StackPanel> |
388 | | - </Grid> |
389 | | - </DataTemplate> |
390 | | - </ItemsControl.ItemTemplate> |
391 | | - <ItemsControl.Template> |
392 | | - <ControlTemplate> |
393 | | - <StackPanel Orientation="Vertical" IsItemsHost="True" /> |
394 | | - </ControlTemplate> |
395 | | - </ItemsControl.Template> |
396 | | - </ItemsControl> |
397 | | - </Border> |
| 417 | + |
398 | 418 |
|
399 | 419 | <ItemsControl |
400 | 420 | Margin="30,32,12,7" VerticalAlignment="Top" |
|
0 commit comments