PageRenderTime 12ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/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	
 3	The tooltip that is shown when the tray icon is hovered.
 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.TrayToolTip"
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					<TextBlock Text="Stoffi Music Player" DockPanel.Dock="Left" Margin="7 0"/>
54				</DockPanel>
55				<DockPanel DockPanel.Dock="Top" x:Name="TrackInformation">
56					<Canvas DockPanel.Dock="Left" Width="60" Height="60" Margin="0 0 0 5">
57						<Image Source="..\Images\AlbumArt\Default.jpg" x:Name="AlbumArt" Width="46" Height="46" Margin="5"/>
58						<Canvas.Background>
59							<ImageBrush ImageSource="..\Images\Backgrounds\Notification Image.png"/>
60						</Canvas.Background>
61					</Canvas>
62					<DockPanel DockPanel.Dock="Left" LastChildFill="False" Margin="3 0 0 0">
63						<TextBlock x:Name="TrackArtist"
64							TextTrimming="CharacterEllipsis"
65							Text="Nothing is playing"
66							HorizontalAlignment="Left"
67							VerticalAlignment="Center"
68							DockPanel.Dock="Top"
69							FontSize="14"
70							Foreground="Green"
71							Margin="0 15 0 0"/>
72						<TextBlock x:Name="TrackTitle"
73							Text="Turn on some tunes"
74							HorizontalAlignment="Left"
75							VerticalAlignment="Center"
76							DockPanel.Dock="Top"
77							TextTrimming="CharacterEllipsis"
78							TextWrapping="Wrap"/>
79					</DockPanel>
80				</DockPanel>
81			</DockPanel>
82		</Border>
83	</Border>
84</UserControl>