/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
- <!--NowPlaying.xaml
-
- The "Now Playing" screen.
-
- = = = = = = = = = =
-
- This code is part of the Stoffi Music Player Project.
- Visit our website at: stoffiplayer.com
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version
- 3 of the License, or (at your option) any later version.
-
- See stoffiplayer.com/license for more information.
- -->
- <UserControl x:Class="Stoffi.NowPlaying"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
-
- <DockPanel Grid.Row="0" x:Name="InfoPane" Margin="0">
- <StackPanel DockPanel.Dock="Left">
- <TextBlock DockPanel.Dock="Top" Foreground="{DynamicResource InfoPaneTitle}" FontSize="18" Margin="5 5 0 0" x:Name="InfoPaneTitle"
- loc:Translate.Uid="PlaybackEmpty" Text="{loc:Translate Text}"/>
- <TextBlock DockPanel.Dock="Bottom" Foreground="{DynamicResource InfoPaneText}"
- FontSize="12" Margin="5 5 0 10" x:Name="InfoPaneArtist"/>
- </StackPanel>
- <Button DockPanel.Dock="Right" HorizontalAlignment="Right" Content="Configure" VerticalAlignment="Bottom" x:Name="ConfigVisualizer" Margin="5" Visibility="Collapsed"/>
- <DockPanel.Background>
- <ImageBrush ImageSource="/GUI/Images/Backgrounds/Info.png" />
- </DockPanel.Background>
- </DockPanel>
-
- <DockPanel Grid.Row="1" SnapsToDevicePixels="True" x:Name="Video" Background="Black">
- <DockPanel LastChildFill="False" VerticalAlignment="Center" x:Name="NoVideoMessage" HorizontalAlignment="Stretch">
-
- <TextBlock loc:Translate.Uid="NoVideoAvailable"
- Text="{loc:Translate Text}"
- Foreground="White"
- HorizontalAlignment="Center"
- DockPanel.Dock="Top"
- FontSize="30"/>
- <TextBlock FontSize="30"
- loc:Translate.Uid="NoVideoAvailable"
- Text="{loc:Translate Text}"
- DockPanel.Dock="Top"
- RenderTransformOrigin="0.5,0.5"
- Opacity="1"
- HorizontalAlignment="Center">
- <TextBlock.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="-1"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0"/>
- <TranslateTransform/>
- </TransformGroup>
- </TextBlock.RenderTransform>
- <TextBlock.Foreground>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#33FFFFFF" Offset="1"/>
- <GradientStop Color="#00FFFFFF" Offset="0"/>
- </LinearGradientBrush>
- </TextBlock.Foreground>
- </TextBlock>
- </DockPanel>
- <WebBrowser x:Name="Browser"
- Visibility="Collapsed"
- Margin="2"
- Height="0" Width="0"
- VerticalAlignment="Center"
- HorizontalAlignment="Right"
- MouseLeftButtonDown="Browser_MouseLeftButtonDown"
- DockPanel.Dock="Top"/>
- </DockPanel>
- </Grid>
- </UserControl>