PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/Application/GUI/Controls/YouTube.xaml

http://yet-another-music-application.googlecode.com/
XAML | 91 lines | 69 code | 6 blank | 16 comment | 0 complexity | 0bb3c702edff19613cc1909a7b093365 MD5 | raw file
 1<!--YouTube.xaml
 2	
 3	The "YouTube" 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.YouTube"
18			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
19			 xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
20			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
21			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
22			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
23			 xmlns:local="clr-namespace:Stoffi"
24			 xmlns:y="Google.YouTube"
25			 mc:Ignorable="d" 
26			 d:DesignHeight="300" d:DesignWidth="500">
27	<Grid>
28		<Grid.ColumnDefinitions>
29			<ColumnDefinition Width="*"/>
30			<ColumnDefinition Width="250" x:Name="SuggestionColumn" MinWidth="100"/>
31		</Grid.ColumnDefinitions>
32
33		<Grid Grid.Column="0">
34			<Grid.RowDefinitions>
35				<RowDefinition Height="Auto"/>
36				<RowDefinition Height="*"/>
37			</Grid.RowDefinitions>
38
39
40			<Border BorderThickness="0 0 0 1" SnapsToDevicePixels="True">
41				<Border.BorderBrush>
42					<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
43						<GradientStop Color="Transparent" Offset="0"/>
44						<GradientStop Color="#d6e5f5" Offset="0.03"/>
45						<GradientStop Color="#d6e5f5" Offset="0.97"/>
46						<GradientStop Color="Transparent" Offset="1"/>
47					</LinearGradientBrush>
48				</Border.BorderBrush>
49				<DockPanel Grid.Row="0" Margin="0" x:Name="InfoPane">
50					<DockPanel.Background>
51						<ImageBrush ImageSource="/GUI/Images/Backgrounds/Info.png" />
52					</DockPanel.Background>
53					<StackPanel DockPanel.Dock="Left">
54						<TextBlock DockPanel.Dock="Top" 
55						   Foreground="{DynamicResource InfoPaneTitle}" 
56						   FontSize="18" 
57						   Margin="5 5 0 0" 
58						   x:Name="InfoPaneTitle"
59						   loc:Translate.Uid="NavigationYouTubeTitle"
60						   Text="{loc:Translate Text}"/>
61						<TextBlock DockPanel.Dock="Bottom" 
62						   Foreground="{DynamicResource InfoPaneText}" 
63						   FontSize="12" 
64						   Margin="5 5 0 10" 
65						   x:Name="InfoPaneArtist"
66						   loc:Translate.Uid="NavigationYouTubeDescription"
67						   Text="{loc:Translate Text}"/>
68					</StackPanel>
69					<StackPanel Orientation="Vertical" 
70							DockPanel.Dock="Right" 
71							VerticalAlignment="Center" 
72							HorizontalAlignment="Right" 
73							x:Name="SearchPanel" 
74							Visibility="Collapsed"
75							Margin="5">
76						<TextBlock loc:Translate.Uid="YouTubeSearching" Text="{loc:Translate Text}" HorizontalAlignment="Center"/>
77						<ProgressBar IsIndeterminate="True" Width="100" Height="10" HorizontalAlignment="Center"/>
78					</StackPanel>
79				</DockPanel>
80			</Border>
81
82			<local:ViewDetails x:Name="YouTubeTracks" Grid.Row="1" BorderThickness="0"/>
83		</Grid>
84
85		<GridSplitter Width="1" Background="#d6e5f5" x:Name="VerticalSplitter" DragCompleted="VerticalSplitter_DragCompleted"/>
86
87		<StackPanel Orientation="Vertical" Grid.Column="1">
88			<TextBlock Text="Related videos goes here" Margin="10" HorizontalAlignment="Center"/>
89		</StackPanel>
90	</Grid>
91</UserControl>