/Application/GUI/Controls/TrayToolTip.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 84 lines · 68 code · 0 blank · 16 comment · 0 complexity · 2b6a294fc046a49589e19156721dfb70 MD5 · raw file

  1. <!--TrayToolTip.xaml
  2. The tooltip that is shown when the tray icon is hovered.
  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.TrayToolTip"
  13. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  14. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  15. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  16. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  17. mc:Ignorable="d"
  18. d:DesignHeight="150" d:DesignWidth="230">
  19. <UserControl.Resources>
  20. <ResourceDictionary>
  21. <ResourceDictionary.MergedDictionaries>
  22. <ResourceDictionary Source="..\Styles.xaml"/>
  23. </ResourceDictionary.MergedDictionaries>
  24. </ResourceDictionary>
  25. </UserControl.Resources>
  26. <Border
  27. BorderThickness="0,0,1,1"
  28. BorderBrush="#61d3f4"
  29. CornerRadius="5"
  30. Height="116"
  31. Width="200"
  32. Margin="10"
  33. >
  34. <Border.BitmapEffect>
  35. <DropShadowBitmapEffect Color="Black" Direction="0" ShadowDepth="0" Softness="0.8" />
  36. </Border.BitmapEffect>
  37. <Border.Background>
  38. <LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.03">
  39. <GradientStop Color="#cfe4f9" Offset="0"/>
  40. <GradientStop Color="#ebf7fe" Offset="0.60"/>
  41. <GradientStop Color="#e4f3ff" Offset="0.65"/>
  42. </LinearGradientBrush>
  43. </Border.Background>
  44. <Border BorderBrush="#f2f8ff" BorderThickness="1,1,0,0" CornerRadius="5">
  45. <DockPanel Margin="5">
  46. <DockPanel DockPanel.Dock="Top" LastChildFill="False">
  47. <Image Source="Images/Icons/Stoffi.ico" DockPanel.Dock="Left" Width="16" Height="16"/>
  48. <TextBlock Text="Stoffi Music Player" DockPanel.Dock="Left" Margin="7 0"/>
  49. </DockPanel>
  50. <DockPanel DockPanel.Dock="Top" x:Name="TrackInformation">
  51. <Canvas DockPanel.Dock="Left" Width="60" Height="60" Margin="0 0 0 5">
  52. <Image Source="..\Images\AlbumArt\Default.jpg" x:Name="AlbumArt" Width="46" Height="46" Margin="5"/>
  53. <Canvas.Background>
  54. <ImageBrush ImageSource="..\Images\Backgrounds\Notification Image.png"/>
  55. </Canvas.Background>
  56. </Canvas>
  57. <DockPanel DockPanel.Dock="Left" LastChildFill="False" Margin="3 0 0 0">
  58. <TextBlock x:Name="TrackArtist"
  59. TextTrimming="CharacterEllipsis"
  60. Text="Nothing is playing"
  61. HorizontalAlignment="Left"
  62. VerticalAlignment="Center"
  63. DockPanel.Dock="Top"
  64. FontSize="14"
  65. Foreground="Green"
  66. Margin="0 15 0 0"/>
  67. <TextBlock x:Name="TrackTitle"
  68. Text="Turn on some tunes"
  69. HorizontalAlignment="Left"
  70. VerticalAlignment="Center"
  71. DockPanel.Dock="Top"
  72. TextTrimming="CharacterEllipsis"
  73. TextWrapping="Wrap"/>
  74. </DockPanel>
  75. </DockPanel>
  76. </DockPanel>
  77. </Border>
  78. </Border>
  79. </UserControl>