/Application/GUI/Styles.xaml
XAML | 1185 lines | 1121 code | 20 blank | 44 comment | 0 complexity | 0b72b5f79fab02d18a931e75f53053d2 MD5 | raw file
- <!--Styles.xaml
-
- All the styles and templates used on the XAML controls.
-
- = = = = = = = = = =
-
- 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.
- -->
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:properties="clr-namespace:Stoffi.Properties"
- xmlns:tb="http://www.hardcodet.net/taskbar"
- xmlns:local="clr-namespace:Stoffi"
- x:Class="Stoffi.Styles"
- x:ClassModifier="public">
- <properties:Settings x:Key="Settings"/>
-
- <!-- style the toolbar -->
- <Style x:Key="AeroToolbarButtonFocusStyle">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarBackground">
- <GradientStop Color="#fafcfd" Offset="0.0"/>
- <GradientStop Color="#e6f0fa" Offset="0.5"/>
- <GradientStop Color="#dce6f4" Offset="0.5"/>
- <GradientStop Color="#dde9f7" Offset="1.0"/>
- </LinearGradientBrush>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarButtonHoverBackground">
- <GradientStop Color="#f8fbfe" Offset="0.0"/>
- <GradientStop Color="#edf2fa" Offset="0.5"/>
- <GradientStop Color="#d7e4f4" Offset="0.5"/>
- <GradientStop Color="#c1d2e8" Offset="1.0"/>
- </LinearGradientBrush>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarButtonClickBackground">
- <GradientStop Color="#c9d4e4" Offset="0.0"/>
- <GradientStop Color="#e1ebf5" Offset="0.2"/>
- <GradientStop Color="#d8e4f1" Offset="0.5"/>
- <GradientStop Color="#cfdbec" Offset="0.5"/>
- <GradientStop Color="#cfdced" Offset="1.0"/>
- </LinearGradientBrush>
- <Style TargetType="Border" x:Key="AeroToolbarStyle">
- <Setter Property="Background" Value="{StaticResource AeroToolbarBackground}"/>
- <Setter Property="BorderThickness" Value="0,0,0,2"/>
- <Setter Property="BorderBrush" Value="#bfc9d8"/>
- </Style>
- <Style TargetType="Button" x:Key="AeroToolbarButtonStyle">
- <Setter Property="Foreground" Value="#1e395b"/>
- <Setter Property="FocusVisualStyle" Value="{StaticResource AeroToolbarButtonFocusStyle}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border SnapsToDevicePixels="True" CornerRadius="2" BorderThickness="1" x:Name="OuterBorder" BorderBrush="Transparent">
- <Border SnapsToDevicePixels="True" CornerRadius="2" Padding="13,0,13,0" BorderThickness="1" x:Name="InnerBorder" BorderBrush="Transparent">
- <ContentPresenter VerticalAlignment="Center" SnapsToDevicePixels="True"/>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonHoverBackground}"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonClickBackground}"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="Transparent"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#bbaabcd5"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="Transparent"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="Button" x:Key="AeroToolbarSmallButtonStyle">
- <Setter Property="Foreground" Value="#1e395b"/>
- <Setter Property="FocusVisualStyle" Value="{StaticResource AeroToolbarButtonFocusStyle}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border SnapsToDevicePixels="True" CornerRadius="2" BorderThickness="1" x:Name="OuterBorder" BorderBrush="Transparent">
- <Border SnapsToDevicePixels="True" CornerRadius="2" Padding="5,0,5,0" BorderThickness="1" x:Name="InnerBorder" BorderBrush="Transparent">
- <ContentPresenter VerticalAlignment="Center" SnapsToDevicePixels="True"/>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonHoverBackground}"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonClickBackground}"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="Transparent"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#bbaabcd5"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter TargetName="InnerBorder" Property="Background" Value="Transparent"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="Button" x:Key="ClassicToolbarButtonStyle">
- <Setter Property="Padding" Value="13,0,13,0"/>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="BorderBrush" Value="{x:Null}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style TargetType="Button" x:Key="ClassicToolbarSmallButtonStyle">
- <Setter Property="Padding" Value="5,0,5,0"/>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="BorderBrush" Value="{x:Null}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <!-- style the playback buttons -->
- <Style x:Key="NextButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="NextButton" Source="Images\Buttons\Next.png" Width="29" Height="38"/>
- <Image x:Name="NextButtonShine" Source="Images\Buttons\Next Shine.png" Width="29" Height="38" Visibility="Hidden"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" TargetName="NextButtonShine" Value="Visible"/>
- <Setter Property="Visibility" TargetName="NextButton" Value="Hidden"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PreviousButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="PreviousButton" Source="Images\Buttons\Previous.png" Width="29" Height="38"/>
- <Image x:Name="PreviousButtonShine" Source="Images\Buttons\Previous Shine.png" Width="29" Height="38" Visibility="Hidden"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" TargetName="PreviousButtonShine" Value="Visible"/>
- <Setter Property="Visibility" TargetName="PreviousButton" Value="Hidden"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PlayButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="PlayButton" Source="Images\Buttons\Play.png" Width="38" Height="38"/>
- <Image x:Name="PlayButtonShine" Source="Images\Buttons\Play Shine.png" Width="38" Height="38" Visibility="Hidden"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" TargetName="PlayButtonShine" Value="Visible"/>
- <Setter Property="Visibility" TargetName="PlayButton" Value="Hidden"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="PauseButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="PauseButton" Source="Images\Buttons\Pause.png" Width="38" Height="38"/>
- <Image x:Name="PauseButtonShine" Source="Images\Buttons\Pause Shine.png" Width="38" Height="38" Visibility="Hidden"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" TargetName="PauseButtonShine" Value="Visible"/>
- <Setter Property="Visibility" TargetName="PauseButton" Value="Hidden"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- style the shuffe and repeat buttons -->
- <Style x:Key="RepeatAllButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="RepeatButton" Source="Images\Buttons\Repeat All.png" Width="20" Height="20"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="RepeatOneButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="RepeatButton" Source="Images\Buttons\Repeat One.png" Width="20" Height="20"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="RepeatGrayButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="RepeatButton" Source="Images\Buttons\Repeat Gray.png" Width="20" Height="20"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ShuffleButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="ShuffleButton" Source="Images\Buttons\Shuffle.png" Width="20" Height="20"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ShuffleGrayButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="ShuffleButton" Source="Images\Buttons\Shuffle Gray.png" Width="20" Height="20"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- style the details pane -->
- <SolidColorBrush x:Key="DetailsTitle" Color="Black"/>
- <SolidColorBrush x:Key="DetailsDescription" Color="#5A6779"/>
- <SolidColorBrush x:Key="DetailsPaneKey" Color="#766790"/>
- <SolidColorBrush x:Key="DetailsPaneValue" Color="#1E395B"/>
- <Style x:Key="AeroDetailsPaneStyle" TargetType="StatusBar">
- <Setter Property="Background" Value="#f1f5fb"/>
- <Setter Property="Foreground" Value="#1e395b"/>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style>
- <SolidColorBrush x:Key="ClassicDetailsPaneBackground" Color="White"/>
- <Style x:Key="ClassicDetailsPaneStyle" TargetType="StatusBar">
- <Setter Property="Padding" Value="5"/>
- <Setter Property="BorderThickness" Value="0 2 0 0"/>
- <Setter Property="Background" Value="{DynamicResource ClassicDetailsPaneBackground}"/>
- </Style>
- <ControlTemplate x:Key="CurrentTrackTemplate" TargetType="{x:Type ListViewItem}">
- <StackPanel>
- <GridViewRowPresenter Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}">
- <GridViewRowPresenter.Resources>
- <Style TargetType="{x:Type TextBlock}">
- <Setter Property="FontWeight" Value="Bold"/>
- </Style>
- </GridViewRowPresenter.Resources>
- </GridViewRowPresenter>
- </StackPanel>
- </ControlTemplate>
-
- <!-- style the track info pane -->
- <SolidColorBrush x:Key="InfoPaneTitle" Color="#006e12"/>
- <SolidColorBrush x:Key="InfoPaneText" Color="#FF5A6779"/>
-
- <!-- style the track list -->
- <Style x:Key="AeroTrackListHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
- <Setter Property="Background" Value="{x:Null}"/>
- <Setter Property="Foreground" Value="#FF5A6779"/>
- <Setter Property="BorderBrush" Value="{x:Null}"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- </Style>
- <Style x:Key="AeroTrackListStyle" TargetType="{x:Type ListView}">
- <Setter Property="Background" Value="White"/>
- <Setter Property="BorderBrush" Value="#d6e5f5"/>
- <Setter Property="BorderThickness" Value="0 1 0 0"/>
- </Style>
- <LinearGradientBrush x:Key="ColumnHeaderThumbBackground" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#d6e5f5" Offset="0.0" />
- <GradientStop Color="White" Offset="1.0" />
- </LinearGradientBrush>
- <Style x:Key="ClassicTrackListHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- </Style>
- <Style x:Key="ClassicTrackListStyle" TargetType="{x:Type ListView}">
- <Setter Property="BorderBrush" Value="{x:Null}"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style>
- <Style x:Key="AeroTrackListHeaderThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Canvas.Right" Value="-8"/>
- <Setter Property="Canvas.Top" Value="-1"/>
- <Setter Property="Width" Value="18"/>
- <Setter Property="Height" Value="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border Background="#00F90000" Padding="0" BorderThickness="1">
- <Rectangle x:Name="HeaderThumb" Fill="{StaticResource ColumnHeaderThumbBackground}" HorizontalAlignment="Center" Width="1"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="AeroTrackListHeaderThumbHoverStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Canvas.Right" Value="-8"/>
- <Setter Property="Canvas.Top" Value="-1"/>
- <Setter Property="Width" Value="18"/>
- <Setter Property="Height" Value="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border Background="#00F90000" Padding="0" BorderThickness="1">
- <Rectangle x:Name="HeaderThumb" Fill="#FFe2e8f1" HorizontalAlignment="Center" Width="1"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <ControlTemplate x:Key="AeroTrackListHeaderTemplateLeft" TargetType="{x:Type GridViewColumnHeader}">
- <Grid>
- <Border BorderBrush="Transparent" Background="Transparent" BorderThickness="1,0,1,1" x:Name="OuterBorder" SnapsToDevicePixels="True">
- <Border BorderBrush="Transparent" BorderThickness="0,1,0,0" Background="Transparent" x:Name="InnerBorder"
- Margin="1,0,1,1" Padding="0" SnapsToDevicePixels="True">
- <ContentPresenter
- x:Name="HeaderContent"
- Margin="0"
- Content="{TemplateBinding Content}"
- HorizontalAlignment="Left"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"/>
- </Border>
- </Border>
- <Canvas>
- <Thumb x:Name="PART_HeaderGripper" Style="{StaticResource AeroTrackListHeaderThumbStyle}"/>
- </Canvas>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#e2e8f1"/>
- <Setter TargetName="InnerBorder" Property="Background" Value="#f5f7fa"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f5f7fa"/>
- <Setter TargetName="PART_HeaderGripper" Property="Style" Value="{StaticResource AeroTrackListHeaderThumbHoverStyle}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="AeroTrackListHeaderTemplateRight" TargetType="{x:Type GridViewColumnHeader}">
- <Grid>
- <Border BorderBrush="Transparent" Background="Transparent" BorderThickness="1,0,1,1" x:Name="OuterBorder" SnapsToDevicePixels="True">
- <Border BorderBrush="Transparent" BorderThickness="0,1,0,0" Background="Transparent" x:Name="InnerBorder"
- Margin="1,0,1,1" Padding="0" SnapsToDevicePixels="True">
- <ContentPresenter
- x:Name="HeaderContent"
- Margin="0"
- Content="{TemplateBinding Content}"
- HorizontalAlignment="Right"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"/>
- </Border>
- </Border>
- <Canvas>
- <Thumb x:Name="PART_HeaderGripper" Style="{StaticResource AeroTrackListHeaderThumbStyle}"/>
- </Canvas>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="OuterBorder" Property="BorderBrush" Value="#e2e8f1"/>
- <Setter TargetName="InnerBorder" Property="Background" Value="#f5f7fa"/>
- <Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f5f7fa"/>
- <Setter TargetName="PART_HeaderGripper" Property="Style" Value="{StaticResource AeroTrackListHeaderThumbHoverStyle}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <DataTemplate x:Key="HeaderTemplateArrowUp">
- <DockPanel>
- <Image Source="\GUI\Images\Misc\SortArrowUp.png" DockPanel.Dock="Top" Width="7" Height="4"/>
- <TextBlock Text="{Binding}" DockPanel.Dock="Top" Margin="5,0,3,0" TextTrimming="CharacterEllipsis"/>
- </DockPanel>
- </DataTemplate>
- <DataTemplate x:Key="HeaderTemplateArrowDown">
- <DockPanel>
- <Image Source="\GUI\Images\Misc\SortArrowDown.png" DockPanel.Dock="Top" Width="7" Height="4"/>
- <TextBlock Text="{Binding}" DockPanel.Dock="Top" Margin="5,0,3,0" TextTrimming="CharacterEllipsis"/>
- </DockPanel>
- </DataTemplate>
- <DataTemplate x:Key="HeaderTemplate">
- <TextBlock Text="{Binding}" Margin="5,4,3,0" TextTrimming="CharacterEllipsis"/>
- </DataTemplate>
-
- <DataTemplate x:Key="CommonTemplate">
- <TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis"
- Foreground="Gray"
- Text="{Binding}"/>
- </DataTemplate>
- <DataTemplate x:Key="CommonActiveTemplate">
- <TextBlock
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis"
- Foreground="Black"
- Text="{Binding}"/>
- </DataTemplate>
-
- <DataTemplate x:Key="NumberCellTemplate">
- <TextBlock Text="{Binding Number}" HorizontalAlignment="Right" Foreground="Gray"/>
- </DataTemplate>
- <DataTemplate x:Key="TrackCellTemplate">
- <ContentControl Content="{Binding Track}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="ArtistCellTemplate">
- <ContentControl Content="{Binding Artist}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="AlbumCellTemplate">
- <ContentControl Content="{Binding Album}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="TitleCellTemplate">
- <ContentControl Content="{Binding Title}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="GenreCellTemplate">
- <ContentControl Content="{Binding Genre}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="YearCellTemplate">
- <ContentControl Content="{Binding Year}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="LengthCellTemplate">
- <TextBlock Text="{Binding Length}" HorizontalAlignment="Right" Foreground="Gray"/>
- </DataTemplate>
- <DataTemplate x:Key="PathCellTemplate">
- <ContentControl Content="{Binding Path}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="Play_CountCellTemplate">
- <TextBlock Text="{Binding Play_Count}" HorizontalAlignment="Right" Foreground="Gray"/>
- </DataTemplate>
- <DataTemplate x:Key="Last_PlayedCellTemplate">
- <ContentControl Content="{Binding Last_Played}" ContentTemplate="{StaticResource CommonTemplate}"/>
- </DataTemplate>
-
- <DataTemplate x:Key="NumberActiveCellTemplate">
- <TextBlock Text="{Binding Number}" HorizontalAlignment="Right" Foreground="Black"/>
- </DataTemplate>
- <DataTemplate x:Key="TrackActiveCellTemplate">
- <ContentControl Content="{Binding Track}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="ArtistActiveCellTemplate">
- <ContentControl Content="{Binding Artist}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="AlbumActiveCellTemplate">
- <ContentControl Content="{Binding Album}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="TitleActiveCellTemplate">
- <ContentControl Content="{Binding Title}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="GenreActiveCellTemplate">
- <ContentControl Content="{Binding Genre}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="YearActiveCellTemplate">
- <ContentControl Content="{Binding Year}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="LengthActiveCellTemplate">
- <TextBlock Text="{Binding Length}" HorizontalAlignment="Right" Foreground="Black"/>
- </DataTemplate>
- <DataTemplate x:Key="PathActiveCellTemplate">
- <ContentControl Content="{Binding Path}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
- <DataTemplate x:Key="Play_CountActiveCellTemplate">
- <TextBlock Text="{Binding Play_Count}" HorizontalAlignment="Right" Foreground="Black"/>
- </DataTemplate>
- <DataTemplate x:Key="Last_PlayedActiveCellTemplate">
- <ContentControl Content="{Binding Last_Played}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
- </DataTemplate>
-
- <Style x:Key="ListViewItemFocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle RadiusY="2" RadiusX="2" Stroke="#8E6EA6F5" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="ListItemActiveFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#33dbfbdd" Offset="0"/>
- <GradientStop Color="#33c1fcc9" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemActiveHoverFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#88dbfbdd" Offset="0"/>
- <GradientStop Color="#88c1fcc9" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemActiveSelectedFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#ffdbfbdd" Offset="0"/>
- <GradientStop Color="#ffc1fcc9" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemHoverFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#fffafbfd" Offset="0"/>
- <GradientStop Color="#ffebf4fd" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemSelectedFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFdbebfb" Offset="0"/>
- <GradientStop Color="#FFc1dcfa" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemSelectedInactiveFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#fff8f8f8" Offset="0"/>
- <GradientStop Color="#ffe5e5e5" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ListItemSelectedHoverFill" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#77EAF9FF" Offset="0"/>
- <GradientStop Color="#77C9EDFD" Offset="1"/>
- </LinearGradientBrush>
- <Style x:Key="TrackListRowStyle" TargetType="{x:Type ListViewItem}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource ListViewItemFocusVisual}"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Margin" Value="0,0,0,1"/>
- <Setter Property="Padding" Value="5,2,5,2"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListViewItem}">
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2" SnapsToDevicePixels="true">
- <Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition MaxHeight="11"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <GridViewRowPresenter Grid.RowSpan="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
-
- </GridViewRowPresenter>
- </Grid>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource ListItemHoverFill}"/>
- <Setter Property="BorderBrush" Value="#ffb8d6fa"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </Trigger>
- <Trigger Property="IsSelected" Value="true">
- <Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
- <Setter Property="BorderBrush" Value="#FF7da2ce"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsSelected" Value="true"/>
- <Condition Property="Selector.IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="Background" Value="{StaticResource ListItemSelectedInactiveFill}"/>
- <Setter Property="BorderBrush" Value="#FFd9d9d9"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </MultiTrigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsSelected" Value="true"/>
- <Condition Property="IsMouseOver" Value="true"/>
- <Condition Property="Selector.IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
- <Setter Property="BorderBrush" Value="#FF7da2ce"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </MultiTrigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=IsActive}" Value="True">
- <Setter Property="Background" Value="{StaticResource ListItemActiveSelectedFill}"/>
- <Setter Property="BorderBrush" Value="#FF7dce86"/>
- </DataTrigger>
- <!--<MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListViewItem}}, Path=IsSelected}" Value="True"/>
- <Condition Binding="{Binding Path=IsActive}" Value="True"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" Value="{StaticResource ListItemActiveSelectedFill}"/>
- <Setter Property="BorderBrush" Value="#FF7dce86"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListViewItem}}, Path=IsMouseOver}" Value="True"/>
- <Condition Binding="{Binding Path=IsActive}" Value="True"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" Value="{StaticResource ListItemActiveHoverFill}"/>
- <Setter Property="BorderBrush" Value="#BB7dce86"/>
- </MultiDataTrigger>-->
- </Style.Triggers>
- </Style>
-
- <!-- style the tree view -->
- <Style x:Key="AeroNavigationStyle" TargetType="TreeViewItem" BasedOn="{StaticResource {x:Type TreeViewItem}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TreeViewItem">
- <StackPanel>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="1"
- Background="{TemplateBinding Background}"
- CornerRadius="2"
- SnapsToDevicePixels="true"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- MinHeight="23"
- x:Name="Item">
- <Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="1">
- <StackPanel x:Name="Panel" Orientation="Horizontal">
- <ToggleButton IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" Name="Expander">
- <ToggleButton.Style>
- <Style TargetType="ToggleButton">
- <Setter Property="UIElement.Focusable" Value="false" />
- <Setter Property="FrameworkElement.Width" Value="16" />
- <Setter Property="FrameworkElement.Height" Value="16" />
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Border Padding="5,5,5,5" Background="#00FFFFFF" Width="16" Height="16">
- <Path Fill="#00FFFFFF" Stroke="#FF989898" Name="ExpandPath">
- <Path.Data>
- <PathGeometry Figures="M0,0L0,6L6,0z" />
- </Path.Data>
- <Path.RenderTransform>
- <RotateTransform Angle="135" CenterX="3" CenterY="3" />
- </Path.RenderTransform>
- </Path>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF1BBBFA" />
- <Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#00FFFFFF" />
- </Trigger>
- <Trigger Property="ToggleButton.IsChecked" Value="True">
- <Setter TargetName="ExpandPath" Property="UIElement.RenderTransform">
- <Setter.Value>
- <RotateTransform Angle="180" CenterX="3" CenterY="3" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#FF595959" />
- <Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF262626" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ToggleButton.Style>
- </ToggleButton>
- <Border x:Name="Bd"
- HorizontalAlignment="Stretch"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Padding="{TemplateBinding Control.Padding}"
- Background="{TemplateBinding Panel.Background}"
- SnapsToDevicePixels="True">
- <ContentPresenter x:Name="PART_Header"
- Content="{TemplateBinding HeaderedContentControl.Header}"
- ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
- ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
- ContentTemplateSelector="{TemplateBinding HeaderedItemsControl.HeaderTemplateSelector}"
- ContentSource="Header"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
- </Border>
- </StackPanel>
- </Border>
- </Border>
- <Border Padding="0 0 0 0" Grid.Column="0" Grid.Row="1">
- <ItemsPresenter x:Name="ItemsHost"/>
- </Border>
- </Grid>
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="TreeViewItem.IsExpanded" Value="False">
- <Setter TargetName="ItemsHost" Property="UIElement.Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="ItemsControl.HasItems" Value="False">
- <Setter TargetName="Expander" Property="UIElement.Visibility" Value="Hidden" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true" SourceName="Item">
- <Setter Property="Background" Value="{StaticResource ListItemHoverFill}"/>
- <Setter Property="BorderBrush" Value="#ffb8d6fa"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </Trigger>
- <Trigger Property="TreeViewItem.IsSelected" Value="true">
- <Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
- <Setter Property="BorderBrush" Value="#FF7da2ce"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="TreeViewItem.IsSelected" Value="true"/>
- <Condition Property="Selector.IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="Background" Value="{StaticResource ListItemSelectedInactiveFill}"/>
- <Setter Property="BorderBrush" Value="#FFd9d9d9"/>
- <Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
- </MultiTrigger>
- <Trigger Property="UIElement.IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ClassicNavigationStyle" TargetType="TreeViewItem" BasedOn="{StaticResource {x:Type TreeViewItem}}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TreeViewItem">
- <StackPanel>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="1"
- Background="{TemplateBinding Background}"
- CornerRadius="0"
- SnapsToDevicePixels="true"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- MinHeight="23"
- x:Name="Item">
- <Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="0">
- <StackPanel x:Name="Panel" Orientation="Horizontal">
- <ToggleButton IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" Name="Expander">
- <ToggleButton.Style>
- <Style TargetType="ToggleButton">
- <Setter Property="UIElement.Focusable" Value="false" />
- <Setter Property="FrameworkElement.Width" Value="16" />
- <Setter Property="FrameworkElement.Height" Value="16" />
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Border Padding="5,5,5,5" Background="#00FFFFFF" Width="16" Height="16">
- <Path Fill="#00FFFFFF" Stroke="#FF989898" Name="ExpandPath">
- <Path.Data>
- <PathGeometry Figures="M0,0L0,6L6,0z" />
- </Path.Data>
- <Path.RenderTransform>
- <RotateTransform Angle="135" CenterX="3" CenterY="3" />
- </Path.RenderTransform>
- </Path>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF1BBBFA" />
- <Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#00FFFFFF" />
- </Trigger>
- <Trigger Property="ToggleButton.IsChecked" Value="True">
- <Setter TargetName="ExpandPath" Property="UIElement.RenderTransform">
- <Setter.Value>
- <RotateTransform Angle="180" CenterX="3" CenterY="3" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#FF595959" />
- <Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF262626" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ToggleButton.Style>
- </ToggleButton>
- <Border x:Name="Bd"
- HorizontalAlignment="Stretch"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- Padding="{TemplateBinding Control.Padding}"
- Background="{TemplateBinding Panel.Background}"
- SnapsToDevicePixels="True">
- <ContentPresenter x:Name="PART_Header"
- Content="{TemplateBinding HeaderedContentControl.Header}"
- ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
- ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
- ContentTemplateSelector="{TemplateBinding HeaderedItemsControl.HeaderTemplateSelector}"
- ContentSource="Header"
- HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
- </Border>
- </StackPanel>
- </Border>
- </Border>
- <Border Padding="0 0 0 0" Grid.Column="0" Grid.Row="1">
- <ItemsPresenter x:Name="ItemsHost"/>
- </Border>
- </Grid>
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="TreeViewItem.IsExpanded" Value="False">
- <Setter TargetName="ItemsHost" Property="UIElement.Visibility" Value="Collapsed" />
- </Trigger>
- <Trigger Property="ItemsControl.HasItems" Value="False">
- <Setter TargetName="Expander" Property="UIElement.Visibility" Value="Hidden" />
- </Trigger>
- <Trigger Property="TreeViewItem.IsSelected" Value="true">
- <Setter Property="Background" Value="MidnightBlue"/>
- <Setter Property="Foreground" Value="White"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="TreeViewItem.IsSelected" Value="true"/>
- <Condition Property="Selector.IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="Background" Value="LightGray"/>
- </MultiTrigger>
- <Trigger Property="UIElement.IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- style the volume and track slide -->
- <SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground" Color="Transparent"/>
- <LinearGradientBrush x:Key="HorizontalSliderTrackNormalBorder" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFAEB1AF" Offset="0.1"/>
- <GradientStop Color="White" Offset=".9"/>
- </LinearGradientBrush>
- <Style x:Key="SliderRepeatButtonColorStyle" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Fill="#797a7a" Height="2"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SliderRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Rectangle Fill="Transparent"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="OrbThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="22"/>
- <Setter Property="Width" Value="11"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Image Source="Images\Buttons\Small Orb.png"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="MiniThumbStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Height" Value="6"/>
- <Setter Property="Width" Value="4"/>
- <Setter Property="Foreground" Value="Gray"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Rectangle Height="4" Width="4" Fill="#595a5a"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="VolumeSlideStyle" TargetType="{x:Type Slider}">
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="#FFC4C4C4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Slider}">
- <Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Border x:Name="TrackBackground" Margin="0" VerticalAlignment="center" Height="4.0" Grid.Row="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}" BorderThickness="1" CornerRadius="1">
- <Canvas Margin="-6,-1">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Height="4.0" Visibility="Hidden"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource OrbThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="TrackSlideStyle" TargetType="{x:Type Slider}">
- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Foreground" Value="#FFC4C4C4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Slider}">
- <Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Border x:Name="TrackBackground" Margin="0,0" VerticalAlignment="center" Height="4.0" Grid.Row="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}" BorderThickness="1" CornerRadius="1">
- <Canvas Margin="-6,-1">
- <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" StrokeThickness="1.0" Height="4.0" Visibility="Hidden"/>
- </Canvas>
- </Border>
- <Track x:Name="PART_Track" Grid.Row="1">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource SliderRepeatButtonColorStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource MiniThumbStyle}"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- style the search button -->
- <Style x:Key="SearchButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="SearchButton" Source="Images\Buttons\Search.png" Width="15" Height="15"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SearchClearButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="SearchClearButton" Source="Images\Buttons\SearchClear.png" Width="15" Height="15"/>
- <Image x:Name="SearchClearButtonShine" Source="Images\Buttons\SearchClear Shine.png" Width="15" Height="15" Visibility="Hidden"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Visibility" TargetName="SearchClearButtonShine" Value="Visible"/>
- <Setter Property="Visibility" TargetName="SearchClearButton" Value="Hidden"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- style the control panel -->
- <Style x:Key="ControlPanelLinkStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <TextBlock Margin="18 0 0 0" Foreground="#151c55" x:Name="LinkText">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </TextBlock>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" TargetName="LinkText" Value="Blue"/>
- <Setter Property="TextDecorations" TargetName="LinkText" Value="Baseline"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ControlPanelLinkActiveStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Ellipse Fill="#151c55" Height="6" Width="6" StrokeThickness="1" Stroke="#151c55" HorizontalAlignment="Left"/>
- <TextBlock Margin="18 0 0 0" Foreground="#151c55" x:Name="LinkText" FontWeight="Bold" HorizontalAlignment="Left">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </TextBlock>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="AeroControlPanelTitleStyle" TargetType="TextBlock">
- <Setter Property="Margin" Value="25,25,0,0"/>
- <Setter Property="Foreground" Value="#003399"/>
- <Setter Property="FontSize" Value="16"/>
- </Style>
- <Style x:Key="ClassicControlPanelTitleStyle" TargetType="TextBlock">
- <Setter Property="Margin" Value="25,25,0,0"/>
- <!--<Setter Property="FontSize" Value="16"/>-->
- <Setter Property="FontWeight" Value="Bold"/>
- </Style>
-
- <!-- tray Icon -->
- <tb:TaskbarIcon x:Key="NotifyIcon" IconSource="Images\Icons\Tray.ico" ToolTipText="A simple approach to music"/>
- <Style x:Key="NotificationCloseButtonStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Image x:Name="ShuffleButton" Source="Images\Buttons\Close Notification.png" Width="8" Height="8"/>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="NotificationLinkStyle" TargetType="Button">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <TextBlock Margin="0 0 0 0" Foreground="#151c55" x:Name="LinkText">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </TextBlock>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" TargetName="LinkText" Value="Blue"/>
- <Setter Property="TextDecorations" TargetName="LinkText" Value="Baseline"/>
- <Setter Property="Cursor" Value="Hand"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <BitmapImage UriSource="Images\Misc\SortArrowUp.png" x:Key="SortArrowUp"/>
- <BitmapImage UriSource="Images\Misc\SortArrowDown.png" x:Key="SortArrowDown"/>
- <Image x:Key="LibraryIcon" Source="Images\Icons\Library.ico" Width="16" Height="16"/>
- <Image x:Key="QueueIcon" Source="Images\Icons\Queue.ico" Width="16" Height="16"/>
- <Image x:Key="HistoryIcon" Source="Images\Icons\Clock.ico" Width="16" Height="16"/>
- <Image x:Key="PlaylistIcon" Source="Images\Icons\DiscAudio.ico" Width="16" Height="16"/>
-
- <Image x:Key="DefaultAlbumArt" Source="Images\AlbumArt\Default.jpg"/>
-
- </ResourceDictionary>