PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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	
 3	The "Now Playing" screen.
 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.NowPlaying"
18			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
19			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
20			 xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
21			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
22			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
23			 mc:Ignorable="d" 
24			 d:DesignHeight="300" d:DesignWidth="300">
25	<Grid>
26		<Grid.RowDefinitions>
27			<RowDefinition Height="Auto"/>
28			<RowDefinition Height="*"/>
29		</Grid.RowDefinitions>
30
31
32		<DockPanel Grid.Row="0" x:Name="InfoPane" Margin="0">
33			<StackPanel DockPanel.Dock="Left">
34				<TextBlock DockPanel.Dock="Top" Foreground="{DynamicResource InfoPaneTitle}" FontSize="18" Margin="5 5 0 0" x:Name="InfoPaneTitle"
35						   loc:Translate.Uid="PlaybackEmpty" Text="{loc:Translate Text}"/>
36				<TextBlock DockPanel.Dock="Bottom" Foreground="{DynamicResource InfoPaneText}" 
37							FontSize="12" Margin="5 5 0 10" x:Name="InfoPaneArtist"/>
38			</StackPanel>
39			<Button DockPanel.Dock="Right" HorizontalAlignment="Right" Content="Configure" VerticalAlignment="Bottom" x:Name="ConfigVisualizer" Margin="5" Visibility="Collapsed"/>
40			<DockPanel.Background>
41				<ImageBrush ImageSource="/GUI/Images/Backgrounds/Info.png" />
42			</DockPanel.Background>
43		</DockPanel>
44
45		<DockPanel Grid.Row="1" SnapsToDevicePixels="True" x:Name="Video" Background="Black">
46			<DockPanel LastChildFill="False" VerticalAlignment="Center" x:Name="NoVideoMessage" HorizontalAlignment="Stretch">
47
48				<TextBlock loc:Translate.Uid="NoVideoAvailable"
49						   Text="{loc:Translate Text}"
50						   Foreground="White" 
51						   HorizontalAlignment="Center" 
52						   DockPanel.Dock="Top"
53						   FontSize="30"/>
54				<TextBlock FontSize="30"
55						   loc:Translate.Uid="NoVideoAvailable"
56						   Text="{loc:Translate Text}"
57						   DockPanel.Dock="Top"
58						   RenderTransformOrigin="0.5,0.5" 
59						   Opacity="1" 
60						   HorizontalAlignment="Center">
61					<TextBlock.RenderTransform>  
62						<TransformGroup>  
63							<ScaleTransform ScaleX="1" ScaleY="-1"/>  
64							<SkewTransform AngleX="0" AngleY="0"/>  
65							<RotateTransform Angle="0"/>
66							<TranslateTransform/>
67						</TransformGroup>
68					</TextBlock.RenderTransform>    
69					<TextBlock.Foreground>  
70						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
71							<GradientStop Color="#33FFFFFF" Offset="1"/>  
72							<GradientStop Color="#00FFFFFF" Offset="0"/>  
73						</LinearGradientBrush>  
74					</TextBlock.Foreground>
75				</TextBlock>
76			</DockPanel>
77			<WebBrowser x:Name="Browser" 
78						Visibility="Collapsed"
79						Margin="2" 
80						Height="0" Width="0" 
81						VerticalAlignment="Center" 
82						HorizontalAlignment="Right" 
83						MouseLeftButtonDown="Browser_MouseLeftButtonDown"
84						DockPanel.Dock="Top"/>
85		</DockPanel>
86	</Grid>
87</UserControl>