/Application/GUI/Controls/TrayNotification.xaml

http://yet-another-music-application.googlecode.com/ · XAML · 96 lines · 80 code · 0 blank · 16 comment · 0 complexity · 16e6619b7b9f2ef3152fadd3703a1849 MD5 · raw file

  1. <!--TrayNotification.xaml
  2. The notification that is shown in the tray area.
  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.TrayNotification"
  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. <Button DockPanel.Dock="Right" Margin="5 0" Style="{StaticResource NotificationCloseButtonStyle}" Name="Close" Click="Close_Click" Width="8" Height="8"/>
  49. <TextBlock Text="Stoffi Music Player" DockPanel.Dock="Left" Margin="7 0"/>
  50. </DockPanel>
  51. <DockPanel DockPanel.Dock="Top" x:Name="NewUpgrades" Visibility="Collapsed">
  52. <TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" DockPanel.Dock="Top" FontSize="16" x:Name="UpgradeTitle">
  53. New Upgrades Available
  54. </TextBlock>
  55. <TextBlock HorizontalAlignment="Center" Margin="0" DockPanel.Dock="Top" FontSize="10" Foreground="Gray" x:Name="UpgradeDescription">
  56. Found 0 new upgrades
  57. </TextBlock>
  58. <Button DockPanel.Dock="Top" Margin="10" HorizontalAlignment="Center" Style="{StaticResource NotificationLinkStyle}" Click="Upgrade_Click" x:Name="UpgradeLink">
  59. Click to upgrade now
  60. </Button>
  61. </DockPanel>
  62. <DockPanel DockPanel.Dock="Top" x:Name="TrackInformation">
  63. <Canvas DockPanel.Dock="Left" Width="60" Height="60" Margin="0 0 0 5">
  64. <Image Source="..\Images\AlbumArt\Default.jpg" x:Name="AlbumArt" Width="46" Height="46" Margin="5"/>
  65. <Canvas.Background>
  66. <ImageBrush ImageSource="..\Images\Backgrounds\Notification Image.png"/>
  67. </Canvas.Background>
  68. </Canvas>
  69. <DockPanel DockPanel.Dock="Left" LastChildFill="False" Margin="3 0 0 0">
  70. <TextBlock x:Name="TrackArtist"
  71. TextTrimming="CharacterEllipsis"
  72. Text="Nothing is playing"
  73. HorizontalAlignment="Left"
  74. VerticalAlignment="Center"
  75. DockPanel.Dock="Top"
  76. FontSize="14"
  77. Foreground="Green"
  78. Margin="0 15 0 0"/>
  79. <TextBlock x:Name="TrackTitle"
  80. Text="Turn on some tunes"
  81. HorizontalAlignment="Left"
  82. VerticalAlignment="Center"
  83. DockPanel.Dock="Top"
  84. TextTrimming="CharacterEllipsis"
  85. TextWrapping="Wrap"/>
  86. </DockPanel>
  87. </DockPanel>
  88. </DockPanel>
  89. </Border>
  90. </Border>
  91. </UserControl>