/Application/GUI/Controls/TrayNotification.xaml
XAML | 96 lines | 80 code | 0 blank | 16 comment | 0 complexity | 16e6619b7b9f2ef3152fadd3703a1849 MD5 | raw file
1<!--TrayNotification.xaml 2 3 The notification that is shown in the tray area. 4 5 = = = = = = = = = = 6 7 This code is part of the Stoffi Music Player Project. 8 Visit our website at: stoffiplayer.com 9 10 This program is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License 12 as published by the Free Software Foundation; either version 13 3 of the License, or (at your option) any later version. 14 15 See stoffiplayer.com/license for more information. 16 --> 17<UserControl x:Class="Stoffi.TrayNotification" 18 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 19 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 20 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 21 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 22 mc:Ignorable="d" 23 d:DesignHeight="150" d:DesignWidth="230"> 24 <UserControl.Resources> 25 <ResourceDictionary> 26 <ResourceDictionary.MergedDictionaries> 27 <ResourceDictionary Source="..\Styles.xaml"/> 28 </ResourceDictionary.MergedDictionaries> 29 </ResourceDictionary> 30 </UserControl.Resources> 31 <Border 32 BorderThickness="0,0,1,1" 33 BorderBrush="#61d3f4" 34 CornerRadius="5" 35 Height="116" 36 Width="200" 37 Margin="10" 38 > 39 <Border.BitmapEffect> 40 <DropShadowBitmapEffect Color="Black" Direction="0" ShadowDepth="0" Softness="0.8" /> 41 </Border.BitmapEffect> 42 <Border.Background> 43 <LinearGradientBrush EndPoint="0.504,1.5" StartPoint="0.504,0.03"> 44 <GradientStop Color="#cfe4f9" Offset="0"/> 45 <GradientStop Color="#ebf7fe" Offset="0.60"/> 46 <GradientStop Color="#e4f3ff" Offset="0.65"/> 47 </LinearGradientBrush> 48 </Border.Background> 49 <Border BorderBrush="#f2f8ff" BorderThickness="1,1,0,0" CornerRadius="5"> 50 <DockPanel Margin="5"> 51 <DockPanel DockPanel.Dock="Top" LastChildFill="False"> 52 <Image Source="Images/Icons/Stoffi.ico" DockPanel.Dock="Left" Width="16" Height="16"/> 53 <Button DockPanel.Dock="Right" Margin="5 0" Style="{StaticResource NotificationCloseButtonStyle}" Name="Close" Click="Close_Click" Width="8" Height="8"/> 54 <TextBlock Text="Stoffi Music Player" DockPanel.Dock="Left" Margin="7 0"/> 55 </DockPanel> 56 <DockPanel DockPanel.Dock="Top" x:Name="NewUpgrades" Visibility="Collapsed"> 57 <TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" DockPanel.Dock="Top" FontSize="16" x:Name="UpgradeTitle"> 58 New Upgrades Available 59 </TextBlock> 60 <TextBlock HorizontalAlignment="Center" Margin="0" DockPanel.Dock="Top" FontSize="10" Foreground="Gray" x:Name="UpgradeDescription"> 61 Found 0 new upgrades 62 </TextBlock> 63 <Button DockPanel.Dock="Top" Margin="10" HorizontalAlignment="Center" Style="{StaticResource NotificationLinkStyle}" Click="Upgrade_Click" x:Name="UpgradeLink"> 64 Click to upgrade now 65 </Button> 66 </DockPanel> 67 <DockPanel DockPanel.Dock="Top" x:Name="TrackInformation"> 68 <Canvas DockPanel.Dock="Left" Width="60" Height="60" Margin="0 0 0 5"> 69 <Image Source="..\Images\AlbumArt\Default.jpg" x:Name="AlbumArt" Width="46" Height="46" Margin="5"/> 70 <Canvas.Background> 71 <ImageBrush ImageSource="..\Images\Backgrounds\Notification Image.png"/> 72 </Canvas.Background> 73 </Canvas> 74 <DockPanel DockPanel.Dock="Left" LastChildFill="False" Margin="3 0 0 0"> 75 <TextBlock x:Name="TrackArtist" 76 TextTrimming="CharacterEllipsis" 77 Text="Nothing is playing" 78 HorizontalAlignment="Left" 79 VerticalAlignment="Center" 80 DockPanel.Dock="Top" 81 FontSize="14" 82 Foreground="Green" 83 Margin="0 15 0 0"/> 84 <TextBlock x:Name="TrackTitle" 85 Text="Turn on some tunes" 86 HorizontalAlignment="Left" 87 VerticalAlignment="Center" 88 DockPanel.Dock="Top" 89 TextTrimming="CharacterEllipsis" 90 TextWrapping="Wrap"/> 91 </DockPanel> 92 </DockPanel> 93 </DockPanel> 94 </Border> 95 </Border> 96</UserControl>