/Application/GUI/Controls/NowPlaying.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 87 lines · 67 code · 4 blank · 16 comment · 0 complexity · 310772f1c62812aa6158dbe688287114 MD5 · raw file

  1. <!--NowPlaying.xaml
  2. The "Now Playing" screen.
  3. = = = = = = = = = =
  4. This code is part of the Stoffi Music Player Project.
  5. Visit our website at: stoffiplayer.com
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version
  9. 3 of the License, or (at your option) any later version.
  10. See stoffiplayer.com/license for more information.
  11. -->
  12. <UserControl x:Class="Stoffi.NowPlaying"
  13. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  14. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  15. xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
  16. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  17. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  18. mc:Ignorable="d"
  19. d:DesignHeight="300" d:DesignWidth="300">
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="Auto"/>
  23. <RowDefinition Height="*"/>
  24. </Grid.RowDefinitions>
  25. <DockPanel Grid.Row="0" x:Name="InfoPane" Margin="0">
  26. <StackPanel DockPanel.Dock="Left">
  27. <TextBlock DockPanel.Dock="Top" Foreground="{DynamicResource InfoPaneTitle}" FontSize="18" Margin="5 5 0 0" x:Name="InfoPaneTitle"
  28. loc:Translate.Uid="PlaybackEmpty" Text="{loc:Translate Text}"/>
  29. <TextBlock DockPanel.Dock="Bottom" Foreground="{DynamicResource InfoPaneText}"
  30. FontSize="12" Margin="5 5 0 10" x:Name="InfoPaneArtist"/>
  31. </StackPanel>
  32. <Button DockPanel.Dock="Right" HorizontalAlignment="Right" Content="Configure" VerticalAlignment="Bottom" x:Name="ConfigVisualizer" Margin="5" Visibility="Collapsed"/>
  33. <DockPanel.Background>
  34. <ImageBrush ImageSource="/GUI/Images/Backgrounds/Info.png" />
  35. </DockPanel.Background>
  36. </DockPanel>
  37. <DockPanel Grid.Row="1" SnapsToDevicePixels="True" x:Name="Video" Background="Black">
  38. <DockPanel LastChildFill="False" VerticalAlignment="Center" x:Name="NoVideoMessage" HorizontalAlignment="Stretch">
  39. <TextBlock loc:Translate.Uid="NoVideoAvailable"
  40. Text="{loc:Translate Text}"
  41. Foreground="White"
  42. HorizontalAlignment="Center"
  43. DockPanel.Dock="Top"
  44. FontSize="30"/>
  45. <TextBlock FontSize="30"
  46. loc:Translate.Uid="NoVideoAvailable"
  47. Text="{loc:Translate Text}"
  48. DockPanel.Dock="Top"
  49. RenderTransformOrigin="0.5,0.5"
  50. Opacity="1"
  51. HorizontalAlignment="Center">
  52. <TextBlock.RenderTransform>
  53. <TransformGroup>
  54. <ScaleTransform ScaleX="1" ScaleY="-1"/>
  55. <SkewTransform AngleX="0" AngleY="0"/>
  56. <RotateTransform Angle="0"/>
  57. <TranslateTransform/>
  58. </TransformGroup>
  59. </TextBlock.RenderTransform>
  60. <TextBlock.Foreground>
  61. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  62. <GradientStop Color="#33FFFFFF" Offset="1"/>
  63. <GradientStop Color="#00FFFFFF" Offset="0"/>
  64. </LinearGradientBrush>
  65. </TextBlock.Foreground>
  66. </TextBlock>
  67. </DockPanel>
  68. <WebBrowser x:Name="Browser"
  69. Visibility="Collapsed"
  70. Margin="2"
  71. Height="0" Width="0"
  72. VerticalAlignment="Center"
  73. HorizontalAlignment="Right"
  74. MouseLeftButtonDown="Browser_MouseLeftButtonDown"
  75. DockPanel.Dock="Top"/>
  76. </DockPanel>
  77. </Grid>
  78. </UserControl>