PageRenderTime 29ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Application/GUI/Styles.xaml

http://yet-another-music-application.googlecode.com/
XAML | 1185 lines | 1121 code | 20 blank | 44 comment | 0 complexity | 0b72b5f79fab02d18a931e75f53053d2 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1<!--Styles.xaml
   2	
   3	All the styles and templates used on the XAML controls.
   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<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  18					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  19					xmlns:properties="clr-namespace:Stoffi.Properties"
  20					xmlns:tb="http://www.hardcodet.net/taskbar"
  21					xmlns:local="clr-namespace:Stoffi"
  22					x:Class="Stoffi.Styles"
  23					x:ClassModifier="public">
  24	<properties:Settings x:Key="Settings"/>
  25
  26	<!-- style the toolbar -->
  27	<Style x:Key="AeroToolbarButtonFocusStyle">
  28		<Setter Property="Control.Template">
  29			<Setter.Value>
  30				<ControlTemplate>
  31				</ControlTemplate>
  32			</Setter.Value>
  33		</Setter>
  34	</Style>
  35	<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarBackground">
  36		<GradientStop Color="#fafcfd" Offset="0.0"/>
  37		<GradientStop Color="#e6f0fa" Offset="0.5"/>
  38		<GradientStop Color="#dce6f4" Offset="0.5"/>
  39		<GradientStop Color="#dde9f7" Offset="1.0"/>
  40	</LinearGradientBrush>
  41	<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarButtonHoverBackground">
  42		<GradientStop Color="#f8fbfe" Offset="0.0"/>
  43		<GradientStop Color="#edf2fa" Offset="0.5"/>
  44		<GradientStop Color="#d7e4f4" Offset="0.5"/>
  45		<GradientStop Color="#c1d2e8" Offset="1.0"/>
  46	</LinearGradientBrush>
  47	<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" x:Key="AeroToolbarButtonClickBackground">
  48		<GradientStop Color="#c9d4e4" Offset="0.0"/>
  49		<GradientStop Color="#e1ebf5" Offset="0.2"/>
  50		<GradientStop Color="#d8e4f1" Offset="0.5"/>
  51		<GradientStop Color="#cfdbec" Offset="0.5"/>
  52		<GradientStop Color="#cfdced" Offset="1.0"/>
  53	</LinearGradientBrush>
  54	<Style TargetType="Border" x:Key="AeroToolbarStyle">
  55		<Setter Property="Background" Value="{StaticResource AeroToolbarBackground}"/>
  56		<Setter Property="BorderThickness" Value="0,0,0,2"/>
  57		<Setter Property="BorderBrush" Value="#bfc9d8"/>
  58	</Style>
  59	<Style TargetType="Button" x:Key="AeroToolbarButtonStyle">
  60		<Setter Property="Foreground" Value="#1e395b"/>
  61		<Setter Property="FocusVisualStyle" Value="{StaticResource AeroToolbarButtonFocusStyle}" />
  62		<Setter Property="Template">
  63			<Setter.Value>
  64				<ControlTemplate TargetType="Button">
  65					<Border SnapsToDevicePixels="True" CornerRadius="2" BorderThickness="1" x:Name="OuterBorder" BorderBrush="Transparent">
  66						<Border SnapsToDevicePixels="True" CornerRadius="2" Padding="13,0,13,0" BorderThickness="1" x:Name="InnerBorder" BorderBrush="Transparent">
  67							<ContentPresenter VerticalAlignment="Center" SnapsToDevicePixels="True"/>
  68						</Border>
  69					</Border>
  70					<ControlTemplate.Triggers>
  71						<Trigger Property="IsMouseOver" Value="True">
  72							<Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonHoverBackground}"/>
  73							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
  74							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
  75						</Trigger>
  76						<Trigger Property="IsPressed" Value="True">
  77							<Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonClickBackground}"/>
  78							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="Transparent"/>
  79							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#bbaabcd5"/>
  80						</Trigger>
  81						<Trigger Property="IsKeyboardFocused" Value="True">
  82							<Setter TargetName="InnerBorder" Property="Background" Value="Transparent"/>
  83							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
  84							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
  85						</Trigger>
  86					</ControlTemplate.Triggers>
  87				</ControlTemplate>
  88			</Setter.Value>
  89		</Setter>
  90	</Style>
  91	<Style TargetType="Button" x:Key="AeroToolbarSmallButtonStyle">
  92		<Setter Property="Foreground" Value="#1e395b"/>
  93		<Setter Property="FocusVisualStyle" Value="{StaticResource AeroToolbarButtonFocusStyle}" />
  94		<Setter Property="Template">
  95			<Setter.Value>
  96				<ControlTemplate TargetType="Button">
  97					<Border SnapsToDevicePixels="True" CornerRadius="2" BorderThickness="1" x:Name="OuterBorder" BorderBrush="Transparent">
  98						<Border SnapsToDevicePixels="True" CornerRadius="2" Padding="5,0,5,0" BorderThickness="1" x:Name="InnerBorder" BorderBrush="Transparent">
  99							<ContentPresenter VerticalAlignment="Center" SnapsToDevicePixels="True"/>
 100						</Border>
 101					</Border>
 102					<ControlTemplate.Triggers>
 103						<Trigger Property="IsMouseOver" Value="True">
 104							<Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonHoverBackground}"/>
 105							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
 106							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
 107						</Trigger>
 108						<Trigger Property="IsPressed" Value="True">
 109							<Setter TargetName="InnerBorder" Property="Background" Value="{StaticResource AeroToolbarButtonClickBackground}"/>
 110							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="Transparent"/>
 111							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#bbaabcd5"/>
 112						</Trigger>
 113						<Trigger Property="IsKeyboardFocused" Value="True">
 114							<Setter TargetName="InnerBorder" Property="Background" Value="Transparent"/>
 115							<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f3f6fb"/>
 116							<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#BBaabcd3"/>
 117						</Trigger>
 118					</ControlTemplate.Triggers>
 119				</ControlTemplate>
 120			</Setter.Value>
 121		</Setter>
 122	</Style>
 123	<Style TargetType="Button" x:Key="ClassicToolbarButtonStyle">
 124		<Setter Property="Padding" Value="13,0,13,0"/>
 125		<Style.Triggers>
 126			<Trigger Property="IsMouseOver" Value="False">
 127				<Setter Property="BorderBrush" Value="{x:Null}"/>
 128			</Trigger>
 129		</Style.Triggers>
 130	</Style>
 131	<Style TargetType="Button" x:Key="ClassicToolbarSmallButtonStyle">
 132		<Setter Property="Padding" Value="5,0,5,0"/>
 133		<Style.Triggers>
 134			<Trigger Property="IsMouseOver" Value="False">
 135				<Setter Property="BorderBrush" Value="{x:Null}"/>
 136			</Trigger>
 137		</Style.Triggers>
 138	</Style>
 139
 140	<!-- style the playback buttons -->
 141	<Style x:Key="NextButtonStyle" TargetType="Button">
 142		<Setter Property="Template">
 143			<Setter.Value>
 144				<ControlTemplate TargetType="{x:Type Button}">
 145					<Grid>
 146						<Image x:Name="NextButton" Source="Images\Buttons\Next.png" Width="29" Height="38"/>
 147						<Image x:Name="NextButtonShine"  Source="Images\Buttons\Next Shine.png" Width="29" Height="38" Visibility="Hidden"/>
 148						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 149					</Grid>
 150					<ControlTemplate.Triggers>
 151						<Trigger Property="IsMouseOver" Value="True">
 152							<Setter Property="Visibility" TargetName="NextButtonShine" Value="Visible"/>
 153							<Setter Property="Visibility" TargetName="NextButton" Value="Hidden"/>
 154							<Setter Property="Cursor" Value="Hand"/>
 155						</Trigger>
 156					</ControlTemplate.Triggers>
 157				</ControlTemplate>
 158			</Setter.Value>
 159		</Setter>
 160	</Style>
 161	<Style x:Key="PreviousButtonStyle" TargetType="Button">
 162		<Setter Property="Template">
 163			<Setter.Value>
 164				<ControlTemplate TargetType="{x:Type Button}">
 165					<Grid>
 166						<Image x:Name="PreviousButton" Source="Images\Buttons\Previous.png" Width="29" Height="38"/>
 167						<Image x:Name="PreviousButtonShine" Source="Images\Buttons\Previous Shine.png" Width="29" Height="38" Visibility="Hidden"/>
 168						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 169					</Grid>
 170					<ControlTemplate.Triggers>
 171						<Trigger Property="IsMouseOver" Value="True">
 172							<Setter Property="Visibility" TargetName="PreviousButtonShine" Value="Visible"/>
 173							<Setter Property="Visibility" TargetName="PreviousButton" Value="Hidden"/>
 174							<Setter Property="Cursor" Value="Hand"/>
 175						</Trigger>
 176					</ControlTemplate.Triggers>
 177				</ControlTemplate>
 178			</Setter.Value>
 179		</Setter>
 180	</Style>
 181	<Style x:Key="PlayButtonStyle" TargetType="Button">
 182		<Setter Property="Template">
 183			<Setter.Value>
 184				<ControlTemplate TargetType="{x:Type Button}">
 185					<Grid>
 186						<Image x:Name="PlayButton" Source="Images\Buttons\Play.png" Width="38" Height="38"/>
 187						<Image x:Name="PlayButtonShine" Source="Images\Buttons\Play Shine.png" Width="38" Height="38" Visibility="Hidden"/>
 188						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 189					</Grid>
 190					<ControlTemplate.Triggers>
 191						<Trigger Property="IsMouseOver" Value="True">
 192							<Setter Property="Visibility" TargetName="PlayButtonShine" Value="Visible"/>
 193							<Setter Property="Visibility" TargetName="PlayButton" Value="Hidden"/>
 194							<Setter Property="Cursor" Value="Hand"/>
 195						</Trigger>
 196					</ControlTemplate.Triggers>
 197				</ControlTemplate>
 198			</Setter.Value>
 199		</Setter>
 200	</Style>
 201	<Style x:Key="PauseButtonStyle" TargetType="Button">
 202		<Setter Property="Template">
 203			<Setter.Value>
 204				<ControlTemplate TargetType="{x:Type Button}">
 205					<Grid>
 206						<Image x:Name="PauseButton" Source="Images\Buttons\Pause.png" Width="38" Height="38"/>
 207						<Image x:Name="PauseButtonShine" Source="Images\Buttons\Pause Shine.png" Width="38" Height="38" Visibility="Hidden"/>
 208						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 209					</Grid>
 210					<ControlTemplate.Triggers>
 211						<Trigger Property="IsMouseOver" Value="True">
 212							<Setter Property="Visibility" TargetName="PauseButtonShine" Value="Visible"/>
 213							<Setter Property="Visibility" TargetName="PauseButton" Value="Hidden"/>
 214							<Setter Property="Cursor" Value="Hand"/>
 215						</Trigger>
 216					</ControlTemplate.Triggers>
 217				</ControlTemplate>
 218			</Setter.Value>
 219		</Setter>
 220	</Style>
 221
 222	<!-- style the shuffe and repeat buttons -->
 223	<Style x:Key="RepeatAllButtonStyle" TargetType="Button">
 224		<Setter Property="Template">
 225			<Setter.Value>
 226				<ControlTemplate TargetType="{x:Type Button}">
 227					<Grid>
 228						<Image x:Name="RepeatButton" Source="Images\Buttons\Repeat All.png" Width="20" Height="20"/>
 229						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 230					</Grid>
 231					<ControlTemplate.Triggers>
 232						<Trigger Property="IsMouseOver" Value="True">
 233							<Setter Property="Cursor" Value="Hand"/>
 234						</Trigger>
 235					</ControlTemplate.Triggers>
 236				</ControlTemplate>
 237			</Setter.Value>
 238		</Setter>
 239	</Style>
 240	<Style x:Key="RepeatOneButtonStyle" TargetType="Button">
 241		<Setter Property="Template">
 242			<Setter.Value>
 243				<ControlTemplate TargetType="{x:Type Button}">
 244					<Grid>
 245						<Image x:Name="RepeatButton" Source="Images\Buttons\Repeat One.png" Width="20" Height="20"/>
 246						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 247					</Grid>
 248					<ControlTemplate.Triggers>
 249						<Trigger Property="IsMouseOver" Value="True">
 250							<Setter Property="Cursor" Value="Hand"/>
 251						</Trigger>
 252					</ControlTemplate.Triggers>
 253				</ControlTemplate>
 254			</Setter.Value>
 255		</Setter>
 256	</Style>
 257	<Style x:Key="RepeatGrayButtonStyle" TargetType="Button">
 258		<Setter Property="Template">
 259			<Setter.Value>
 260				<ControlTemplate TargetType="{x:Type Button}">
 261					<Grid>
 262						<Image x:Name="RepeatButton" Source="Images\Buttons\Repeat Gray.png" Width="20" Height="20"/>
 263						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 264					</Grid>
 265					<ControlTemplate.Triggers>
 266						<Trigger Property="IsMouseOver" Value="True">
 267							<Setter Property="Cursor" Value="Hand"/>
 268						</Trigger>
 269					</ControlTemplate.Triggers>
 270				</ControlTemplate>
 271			</Setter.Value>
 272		</Setter>
 273	</Style>
 274	<Style x:Key="ShuffleButtonStyle" TargetType="Button">
 275		<Setter Property="Template">
 276			<Setter.Value>
 277				<ControlTemplate TargetType="{x:Type Button}">
 278					<Grid>
 279						<Image x:Name="ShuffleButton" Source="Images\Buttons\Shuffle.png" Width="20" Height="20"/>
 280						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 281					</Grid>
 282					<ControlTemplate.Triggers>
 283						<Trigger Property="IsMouseOver" Value="True">
 284							<Setter Property="Cursor" Value="Hand"/>
 285						</Trigger>
 286					</ControlTemplate.Triggers>
 287				</ControlTemplate>
 288			</Setter.Value>
 289		</Setter>
 290	</Style>
 291	<Style x:Key="ShuffleGrayButtonStyle" TargetType="Button">
 292		<Setter Property="Template">
 293			<Setter.Value>
 294				<ControlTemplate TargetType="{x:Type Button}">
 295					<Grid>
 296						<Image x:Name="ShuffleButton" Source="Images\Buttons\Shuffle Gray.png" Width="20" Height="20"/>
 297						<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
 298					</Grid>
 299					<ControlTemplate.Triggers>
 300						<Trigger Property="IsMouseOver" Value="True">
 301							<Setter Property="Cursor" Value="Hand"/>
 302						</Trigger>
 303					</ControlTemplate.Triggers>
 304				</ControlTemplate>
 305			</Setter.Value>
 306		</Setter>
 307	</Style>
 308
 309	<!-- style the details pane -->
 310	<SolidColorBrush x:Key="DetailsTitle" Color="Black"/>
 311	<SolidColorBrush x:Key="DetailsDescription" Color="#5A6779"/>
 312	<SolidColorBrush x:Key="DetailsPaneKey" Color="#766790"/>
 313	<SolidColorBrush x:Key="DetailsPaneValue" Color="#1E395B"/>
 314	<Style x:Key="AeroDetailsPaneStyle" TargetType="StatusBar">
 315		<Setter Property="Background" Value="#f1f5fb"/>
 316		<Setter Property="Foreground" Value="#1e395b"/>
 317		<Setter Property="Padding" Value="5"/>
 318		<Setter Property="BorderThickness" Value="0"/>
 319	</Style>
 320	<SolidColorBrush x:Key="ClassicDetailsPaneBackground" Color="White"/>
 321	<Style x:Key="ClassicDetailsPaneStyle" TargetType="StatusBar">
 322		<Setter Property="Padding" Value="5"/>
 323		<Setter Property="BorderThickness" Value="0 2 0 0"/>
 324		<Setter Property="Background" Value="{DynamicResource ClassicDetailsPaneBackground}"/>
 325	</Style>
 326	<ControlTemplate x:Key="CurrentTrackTemplate" TargetType="{x:Type ListViewItem}">
 327		<StackPanel>
 328			<GridViewRowPresenter Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}">
 329				<GridViewRowPresenter.Resources>
 330					<Style TargetType="{x:Type TextBlock}">
 331						<Setter Property="FontWeight" Value="Bold"/>
 332					</Style>
 333				</GridViewRowPresenter.Resources>
 334			</GridViewRowPresenter>
 335		</StackPanel>
 336	</ControlTemplate>
 337
 338	<!-- style the track info pane -->
 339	<SolidColorBrush x:Key="InfoPaneTitle" Color="#006e12"/>
 340	<SolidColorBrush x:Key="InfoPaneText" Color="#FF5A6779"/>
 341
 342	<!-- style the track list -->
 343	<Style x:Key="AeroTrackListHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
 344		<Setter Property="Background" Value="{x:Null}"/>
 345		<Setter Property="Foreground" Value="#FF5A6779"/>
 346		<Setter Property="BorderBrush" Value="{x:Null}"/>
 347		<Setter Property="HorizontalContentAlignment" Value="Left"/>
 348	</Style>
 349	<Style x:Key="AeroTrackListStyle" TargetType="{x:Type ListView}">
 350		<Setter Property="Background" Value="White"/>
 351		<Setter Property="BorderBrush" Value="#d6e5f5"/>
 352		<Setter Property="BorderThickness" Value="0 1 0 0"/>
 353	</Style>
 354	<LinearGradientBrush x:Key="ColumnHeaderThumbBackground" StartPoint="0,0" EndPoint="0,1">
 355		<GradientStop Color="#d6e5f5" Offset="0.0" />
 356		<GradientStop Color="White" Offset="1.0" />
 357	</LinearGradientBrush>
 358	<Style x:Key="ClassicTrackListHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
 359		<Setter Property="HorizontalContentAlignment" Value="Left"/>
 360	</Style>
 361	<Style x:Key="ClassicTrackListStyle" TargetType="{x:Type ListView}">
 362		<Setter Property="BorderBrush" Value="{x:Null}"/>
 363		<Setter Property="BorderThickness" Value="0"/>
 364	</Style>
 365	<Style x:Key="AeroTrackListHeaderThumbStyle" TargetType="{x:Type Thumb}">
 366		<Setter Property="Canvas.Right" Value="-8"/>
 367		<Setter Property="Canvas.Top" Value="-1"/>
 368		<Setter Property="Width" Value="18"/>
 369		<Setter Property="Height" Value="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"/>
 370		<Setter Property="Padding" Value="0"/>
 371		<Setter Property="Background" Value="Transparent"/>
 372		<Setter Property="Template">
 373			<Setter.Value>
 374				<ControlTemplate TargetType="{x:Type Thumb}">
 375					<Border Background="#00F90000" Padding="0" BorderThickness="1">
 376						<Rectangle x:Name="HeaderThumb" Fill="{StaticResource ColumnHeaderThumbBackground}" HorizontalAlignment="Center" Width="1"/>
 377					</Border>
 378				</ControlTemplate>
 379			</Setter.Value>
 380		</Setter>
 381	</Style>
 382	<Style x:Key="AeroTrackListHeaderThumbHoverStyle" TargetType="{x:Type Thumb}">
 383		<Setter Property="Canvas.Right" Value="-8"/>
 384		<Setter Property="Canvas.Top" Value="-1"/>
 385		<Setter Property="Width" Value="18"/>
 386		<Setter Property="Height" Value="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}"/>
 387		<Setter Property="Padding" Value="0"/>
 388		<Setter Property="Background" Value="Transparent"/>
 389		<Setter Property="Template">
 390			<Setter.Value>
 391				<ControlTemplate TargetType="{x:Type Thumb}">
 392					<Border Background="#00F90000" Padding="0" BorderThickness="1">
 393						<Rectangle x:Name="HeaderThumb" Fill="#FFe2e8f1" HorizontalAlignment="Center" Width="1"/>
 394					</Border>
 395				</ControlTemplate>
 396			</Setter.Value>
 397		</Setter>
 398	</Style>
 399
 400	<ControlTemplate x:Key="AeroTrackListHeaderTemplateLeft" TargetType="{x:Type GridViewColumnHeader}">
 401		<Grid>
 402			<Border BorderBrush="Transparent" Background="Transparent" BorderThickness="1,0,1,1" x:Name="OuterBorder" SnapsToDevicePixels="True">
 403				<Border BorderBrush="Transparent" BorderThickness="0,1,0,0" Background="Transparent" x:Name="InnerBorder" 
 404						Margin="1,0,1,1" Padding="0" SnapsToDevicePixels="True">
 405					<ContentPresenter 
 406						x:Name="HeaderContent" 
 407						Margin="0"
 408						Content="{TemplateBinding Content}" 
 409						HorizontalAlignment="Left"
 410						ContentStringFormat="{TemplateBinding ContentStringFormat}" 
 411						ContentTemplate="{TemplateBinding ContentTemplate}"/>
 412				</Border>
 413			</Border>
 414			<Canvas>
 415				<Thumb x:Name="PART_HeaderGripper" Style="{StaticResource AeroTrackListHeaderThumbStyle}"/>
 416			</Canvas>
 417		</Grid>
 418		<ControlTemplate.Triggers>
 419			<Trigger Property="IsMouseOver" Value="True">
 420				<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#e2e8f1"/>
 421				<Setter TargetName="InnerBorder" Property="Background" Value="#f5f7fa"/>
 422				<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f5f7fa"/>
 423				<Setter TargetName="PART_HeaderGripper" Property="Style" Value="{StaticResource AeroTrackListHeaderThumbHoverStyle}"/>
 424			</Trigger>
 425		</ControlTemplate.Triggers>
 426	</ControlTemplate>
 427	<ControlTemplate x:Key="AeroTrackListHeaderTemplateRight" TargetType="{x:Type GridViewColumnHeader}">
 428		<Grid>
 429			<Border BorderBrush="Transparent" Background="Transparent" BorderThickness="1,0,1,1" x:Name="OuterBorder" SnapsToDevicePixels="True">
 430				<Border BorderBrush="Transparent" BorderThickness="0,1,0,0" Background="Transparent" x:Name="InnerBorder" 
 431						Margin="1,0,1,1" Padding="0" SnapsToDevicePixels="True">
 432					<ContentPresenter 
 433						x:Name="HeaderContent" 
 434						Margin="0"
 435						Content="{TemplateBinding Content}" 
 436						HorizontalAlignment="Right"
 437						ContentStringFormat="{TemplateBinding ContentStringFormat}" 
 438						ContentTemplate="{TemplateBinding ContentTemplate}"/>
 439				</Border>
 440			</Border>
 441			<Canvas>
 442				<Thumb x:Name="PART_HeaderGripper" Style="{StaticResource AeroTrackListHeaderThumbStyle}"/>
 443			</Canvas>
 444		</Grid>
 445		<ControlTemplate.Triggers>
 446			<Trigger Property="IsMouseOver" Value="True">
 447				<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#e2e8f1"/>
 448				<Setter TargetName="InnerBorder" Property="Background" Value="#f5f7fa"/>
 449				<Setter TargetName="InnerBorder" Property="BorderBrush" Value="#f5f7fa"/>
 450				<Setter TargetName="PART_HeaderGripper" Property="Style" Value="{StaticResource AeroTrackListHeaderThumbHoverStyle}"/>
 451			</Trigger>
 452		</ControlTemplate.Triggers>
 453	</ControlTemplate>
 454	<DataTemplate x:Key="HeaderTemplateArrowUp">
 455		<DockPanel>
 456			<Image Source="\GUI\Images\Misc\SortArrowUp.png" DockPanel.Dock="Top" Width="7" Height="4"/>
 457			<TextBlock Text="{Binding}" DockPanel.Dock="Top" Margin="5,0,3,0" TextTrimming="CharacterEllipsis"/>
 458		</DockPanel>
 459	</DataTemplate>
 460	<DataTemplate x:Key="HeaderTemplateArrowDown">
 461		<DockPanel>
 462			<Image Source="\GUI\Images\Misc\SortArrowDown.png" DockPanel.Dock="Top" Width="7" Height="4"/>
 463			<TextBlock Text="{Binding}" DockPanel.Dock="Top" Margin="5,0,3,0" TextTrimming="CharacterEllipsis"/>
 464		</DockPanel>
 465	</DataTemplate>
 466	<DataTemplate x:Key="HeaderTemplate">
 467		<TextBlock Text="{Binding}" Margin="5,4,3,0" TextTrimming="CharacterEllipsis"/>
 468	</DataTemplate>
 469
 470	<DataTemplate x:Key="CommonTemplate">
 471		<TextBlock HorizontalAlignment="Left"	
 472				   VerticalAlignment="Center"
 473				   TextTrimming="CharacterEllipsis"
 474				   Foreground="Gray"
 475				   Text="{Binding}"/>
 476	</DataTemplate>
 477	<DataTemplate x:Key="CommonActiveTemplate">
 478		<TextBlock
 479				HorizontalAlignment="Left"	
 480				VerticalAlignment="Center"
 481				TextTrimming="CharacterEllipsis"
 482				Foreground="Black"
 483				Text="{Binding}"/>
 484	</DataTemplate>
 485
 486	<DataTemplate x:Key="NumberCellTemplate">
 487		<TextBlock Text="{Binding Number}" HorizontalAlignment="Right" Foreground="Gray"/>
 488	</DataTemplate>
 489	<DataTemplate x:Key="TrackCellTemplate">
 490		<ContentControl Content="{Binding Track}" ContentTemplate="{StaticResource CommonTemplate}"/>
 491	</DataTemplate>
 492	<DataTemplate x:Key="ArtistCellTemplate">
 493		<ContentControl Content="{Binding Artist}" ContentTemplate="{StaticResource CommonTemplate}"/>
 494	</DataTemplate>
 495	<DataTemplate x:Key="AlbumCellTemplate">
 496		<ContentControl Content="{Binding Album}" ContentTemplate="{StaticResource CommonTemplate}"/>
 497	</DataTemplate>
 498	<DataTemplate x:Key="TitleCellTemplate">
 499		<ContentControl Content="{Binding Title}" ContentTemplate="{StaticResource CommonTemplate}"/>
 500	</DataTemplate>
 501	<DataTemplate x:Key="GenreCellTemplate">
 502		<ContentControl Content="{Binding Genre}" ContentTemplate="{StaticResource CommonTemplate}"/>
 503	</DataTemplate>
 504	<DataTemplate x:Key="YearCellTemplate">
 505		<ContentControl Content="{Binding Year}" ContentTemplate="{StaticResource CommonTemplate}"/>
 506	</DataTemplate>
 507	<DataTemplate x:Key="LengthCellTemplate">
 508		<TextBlock Text="{Binding Length}" HorizontalAlignment="Right" Foreground="Gray"/>
 509	</DataTemplate>
 510	<DataTemplate x:Key="PathCellTemplate">
 511		<ContentControl Content="{Binding Path}" ContentTemplate="{StaticResource CommonTemplate}"/>
 512	</DataTemplate>
 513	<DataTemplate x:Key="Play_CountCellTemplate">
 514		<TextBlock Text="{Binding Play_Count}" HorizontalAlignment="Right" Foreground="Gray"/>
 515	</DataTemplate>
 516	<DataTemplate x:Key="Last_PlayedCellTemplate">
 517		<ContentControl Content="{Binding Last_Played}" ContentTemplate="{StaticResource CommonTemplate}"/>
 518	</DataTemplate>
 519
 520	<DataTemplate x:Key="NumberActiveCellTemplate">
 521		<TextBlock Text="{Binding Number}" HorizontalAlignment="Right" Foreground="Black"/>
 522	</DataTemplate>
 523	<DataTemplate x:Key="TrackActiveCellTemplate">
 524		<ContentControl Content="{Binding Track}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 525	</DataTemplate>
 526	<DataTemplate x:Key="ArtistActiveCellTemplate">
 527		<ContentControl Content="{Binding Artist}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 528	</DataTemplate>
 529	<DataTemplate x:Key="AlbumActiveCellTemplate">
 530		<ContentControl Content="{Binding Album}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 531	</DataTemplate>
 532	<DataTemplate x:Key="TitleActiveCellTemplate">
 533		<ContentControl Content="{Binding Title}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 534	</DataTemplate>
 535	<DataTemplate x:Key="GenreActiveCellTemplate">
 536		<ContentControl Content="{Binding Genre}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 537	</DataTemplate>
 538	<DataTemplate x:Key="YearActiveCellTemplate">
 539		<ContentControl Content="{Binding Year}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 540	</DataTemplate>
 541	<DataTemplate x:Key="LengthActiveCellTemplate">
 542		<TextBlock Text="{Binding Length}" HorizontalAlignment="Right" Foreground="Black"/>
 543	</DataTemplate>
 544	<DataTemplate x:Key="PathActiveCellTemplate">
 545		<ContentControl Content="{Binding Path}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 546	</DataTemplate>
 547	<DataTemplate x:Key="Play_CountActiveCellTemplate">
 548		<TextBlock Text="{Binding Play_Count}" HorizontalAlignment="Right" Foreground="Black"/>
 549	</DataTemplate>
 550	<DataTemplate x:Key="Last_PlayedActiveCellTemplate">
 551		<ContentControl Content="{Binding Last_Played}" ContentTemplate="{StaticResource CommonActiveTemplate}"/>
 552	</DataTemplate>
 553
 554	<Style x:Key="ListViewItemFocusVisual">
 555		<Setter Property="Control.Template">
 556			<Setter.Value>
 557				<ControlTemplate>
 558					<Rectangle RadiusY="2" RadiusX="2" Stroke="#8E6EA6F5" StrokeThickness="1"/>
 559				</ControlTemplate>
 560			</Setter.Value>
 561		</Setter>
 562	</Style>
 563	<LinearGradientBrush x:Key="ListItemActiveFill" EndPoint="0,1" StartPoint="0,0">
 564		<GradientStop Color="#33dbfbdd" Offset="0"/>
 565		<GradientStop Color="#33c1fcc9" Offset="1"/>
 566	</LinearGradientBrush>
 567	<LinearGradientBrush x:Key="ListItemActiveHoverFill" EndPoint="0,1" StartPoint="0,0">
 568		<GradientStop Color="#88dbfbdd" Offset="0"/>
 569		<GradientStop Color="#88c1fcc9" Offset="1"/>
 570	</LinearGradientBrush>
 571	<LinearGradientBrush x:Key="ListItemActiveSelectedFill" EndPoint="0,1" StartPoint="0,0">
 572		<GradientStop Color="#ffdbfbdd" Offset="0"/>
 573		<GradientStop Color="#ffc1fcc9" Offset="1"/>
 574	</LinearGradientBrush>
 575	<LinearGradientBrush x:Key="ListItemHoverFill" EndPoint="0,1" StartPoint="0,0">
 576		<GradientStop Color="#fffafbfd" Offset="0"/>
 577		<GradientStop Color="#ffebf4fd" Offset="1"/>
 578	</LinearGradientBrush>
 579	<LinearGradientBrush x:Key="ListItemSelectedFill" EndPoint="0,1" StartPoint="0,0">
 580		<GradientStop Color="#FFdbebfb" Offset="0"/>
 581		<GradientStop Color="#FFc1dcfa" Offset="1"/>
 582	</LinearGradientBrush>
 583	<LinearGradientBrush x:Key="ListItemSelectedInactiveFill" EndPoint="0,1" StartPoint="0,0">
 584		<GradientStop Color="#fff8f8f8" Offset="0"/>
 585		<GradientStop Color="#ffe5e5e5" Offset="1"/>
 586	</LinearGradientBrush>
 587	<LinearGradientBrush x:Key="ListItemSelectedHoverFill" EndPoint="0,1" StartPoint="0,0">
 588		<GradientStop Color="#77EAF9FF" Offset="0"/>
 589		<GradientStop Color="#77C9EDFD" Offset="1"/>
 590	</LinearGradientBrush>
 591	<Style x:Key="TrackListRowStyle" TargetType="{x:Type ListViewItem}">
 592		<Setter Property="FocusVisualStyle" Value="{StaticResource ListViewItemFocusVisual}"/>
 593		<Setter Property="Background" Value="Transparent"/>
 594		<Setter Property="BorderBrush" Value="Transparent"/>
 595		<Setter Property="BorderThickness" Value="1"/>
 596		<Setter Property="Margin" Value="0,0,0,1"/>
 597		<Setter Property="Padding" Value="5,2,5,2"/>
 598		<Setter Property="VerticalContentAlignment" Value="Center"/>
 599		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
 600		<Setter Property="Template">
 601			<Setter.Value>
 602				<ControlTemplate TargetType="{x:Type ListViewItem}">
 603					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="2" SnapsToDevicePixels="true">
 604						<Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="1">
 605							<Grid>
 606								<Grid.RowDefinitions>
 607									<RowDefinition MaxHeight="11"/>
 608									<RowDefinition/>
 609								</Grid.RowDefinitions>
 610								<GridViewRowPresenter Grid.RowSpan="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
 611
 612								</GridViewRowPresenter>
 613							</Grid>
 614						</Border>
 615					</Border>
 616					<ControlTemplate.Triggers>
 617						<Trigger Property="IsMouseOver" Value="true">
 618							<Setter Property="Background" Value="{StaticResource ListItemHoverFill}"/>
 619							<Setter Property="BorderBrush" Value="#ffb8d6fa"/>
 620							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 621						</Trigger>
 622						<Trigger Property="IsSelected" Value="true">
 623							<Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
 624							<Setter Property="BorderBrush" Value="#FF7da2ce"/>
 625							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 626						</Trigger>
 627						<MultiTrigger>
 628							<MultiTrigger.Conditions>
 629								<Condition Property="IsSelected" Value="true"/>
 630								<Condition Property="Selector.IsSelectionActive" Value="false"/>
 631							</MultiTrigger.Conditions>
 632							<Setter Property="Background" Value="{StaticResource ListItemSelectedInactiveFill}"/>
 633							<Setter Property="BorderBrush" Value="#FFd9d9d9"/>
 634							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 635						</MultiTrigger>
 636						<MultiTrigger>
 637							<MultiTrigger.Conditions>
 638								<Condition Property="IsSelected" Value="true"/>
 639								<Condition Property="IsMouseOver" Value="true"/>
 640								<Condition Property="Selector.IsSelectionActive" Value="false"/>
 641							</MultiTrigger.Conditions>
 642							<Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
 643							<Setter Property="BorderBrush" Value="#FF7da2ce"/>
 644							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 645						</MultiTrigger>
 646						<Trigger Property="IsEnabled" Value="false">
 647							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
 648						</Trigger>
 649					</ControlTemplate.Triggers>
 650				</ControlTemplate>
 651			</Setter.Value>
 652		</Setter>
 653		<Style.Triggers>
 654			<DataTrigger Binding="{Binding Path=IsActive}" Value="True">
 655				<Setter Property="Background" Value="{StaticResource ListItemActiveSelectedFill}"/>
 656				<Setter Property="BorderBrush" Value="#FF7dce86"/>
 657			</DataTrigger>
 658			<!--<MultiDataTrigger>
 659				<MultiDataTrigger.Conditions>
 660					<Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListViewItem}}, Path=IsSelected}" Value="True"/>
 661					<Condition Binding="{Binding Path=IsActive}" Value="True"/>
 662				</MultiDataTrigger.Conditions>
 663				<Setter Property="Background" Value="{StaticResource ListItemActiveSelectedFill}"/>
 664				<Setter Property="BorderBrush" Value="#FF7dce86"/>
 665			</MultiDataTrigger>
 666			<MultiDataTrigger>
 667				<MultiDataTrigger.Conditions>
 668					<Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ListViewItem}}, Path=IsMouseOver}" Value="True"/>
 669					<Condition Binding="{Binding Path=IsActive}" Value="True"/>
 670				</MultiDataTrigger.Conditions>
 671				<Setter Property="Background" Value="{StaticResource ListItemActiveHoverFill}"/>
 672				<Setter Property="BorderBrush" Value="#BB7dce86"/>
 673			</MultiDataTrigger>-->
 674		</Style.Triggers>
 675	</Style>
 676
 677	<!-- style the tree view -->
 678	<Style x:Key="AeroNavigationStyle" TargetType="TreeViewItem" BasedOn="{StaticResource {x:Type TreeViewItem}}">
 679		<Setter Property="Template">
 680			<Setter.Value>
 681				<ControlTemplate TargetType="TreeViewItem">
 682					<StackPanel>
 683						<Grid>
 684							<Grid.ColumnDefinitions>
 685								<ColumnDefinition Width="*" />
 686							</Grid.ColumnDefinitions>
 687							<Grid.RowDefinitions>
 688								<RowDefinition Height="Auto" />
 689								<RowDefinition />
 690							</Grid.RowDefinitions>
 691							<Border BorderBrush="{TemplateBinding BorderBrush}" 
 692									BorderThickness="1" 
 693									Background="{TemplateBinding Background}" 
 694									CornerRadius="2" 
 695									SnapsToDevicePixels="true"
 696									Grid.Column="0" 
 697									Grid.ColumnSpan="2"
 698									MinHeight="23"
 699									x:Name="Item">
 700								<Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="1">
 701									<StackPanel x:Name="Panel" Orientation="Horizontal">
 702										<ToggleButton IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" Name="Expander">
 703											<ToggleButton.Style>
 704												<Style TargetType="ToggleButton">
 705													<Setter Property="UIElement.Focusable" Value="false" />
 706													<Setter Property="FrameworkElement.Width" Value="16" />
 707													<Setter Property="FrameworkElement.Height" Value="16" />
 708													<Setter Property="Control.Template">
 709														<Setter.Value>
 710															<ControlTemplate TargetType="ToggleButton">
 711																<Border Padding="5,5,5,5" Background="#00FFFFFF" Width="16" Height="16">
 712																	<Path Fill="#00FFFFFF" Stroke="#FF989898" Name="ExpandPath">
 713																		<Path.Data>
 714																			<PathGeometry Figures="M0,0L0,6L6,0z" />
 715																		</Path.Data>
 716																		<Path.RenderTransform>
 717																			<RotateTransform Angle="135" CenterX="3" CenterY="3" />
 718																		</Path.RenderTransform>
 719																	</Path>
 720																</Border>
 721																<ControlTemplate.Triggers>
 722																	<Trigger Property="UIElement.IsMouseOver" Value="True">
 723																		<Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF1BBBFA" />
 724																		<Setter TargetName="ExpandPath" Property="Shape.Fill"  Value="#00FFFFFF" />
 725																	</Trigger>
 726																	<Trigger Property="ToggleButton.IsChecked" Value="True">
 727																		<Setter TargetName="ExpandPath" Property="UIElement.RenderTransform">
 728																			<Setter.Value>
 729																				<RotateTransform Angle="180" CenterX="3" CenterY="3" />
 730																			</Setter.Value>
 731																		</Setter>
 732																		<Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#FF595959" />
 733																		<Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF262626" />
 734																	</Trigger>
 735																</ControlTemplate.Triggers>
 736															</ControlTemplate>
 737														</Setter.Value>
 738													</Setter>
 739												</Style>
 740											</ToggleButton.Style>
 741										</ToggleButton>
 742										<Border x:Name="Bd"
 743												HorizontalAlignment="Stretch"
 744												BorderThickness="{TemplateBinding Border.BorderThickness}"
 745												BorderBrush="{TemplateBinding Border.BorderBrush}"
 746												Padding="{TemplateBinding Control.Padding}"
 747												Background="{TemplateBinding Panel.Background}"
 748												SnapsToDevicePixels="True">
 749											<ContentPresenter x:Name="PART_Header"
 750															  Content="{TemplateBinding HeaderedContentControl.Header}"
 751															  ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
 752															  ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
 753															  ContentTemplateSelector="{TemplateBinding HeaderedItemsControl.HeaderTemplateSelector}"
 754															  ContentSource="Header"
 755															  HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
 756															  VerticalAlignment="Center"
 757															  SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
 758										</Border>
 759									</StackPanel>
 760								</Border>
 761							</Border>
 762							<Border Padding="0 0 0 0" Grid.Column="0" Grid.Row="1">
 763								<ItemsPresenter x:Name="ItemsHost"/>
 764							</Border>
 765						</Grid>
 766					</StackPanel>
 767					<ControlTemplate.Triggers>
 768						<Trigger Property="TreeViewItem.IsExpanded" Value="False">
 769							<Setter TargetName="ItemsHost" Property="UIElement.Visibility" Value="Collapsed" />
 770						</Trigger>
 771						<Trigger Property="ItemsControl.HasItems" Value="False">
 772							<Setter TargetName="Expander" Property="UIElement.Visibility" Value="Hidden" />
 773						</Trigger>
 774						<Trigger Property="IsMouseOver" Value="true" SourceName="Item">
 775							<Setter Property="Background" Value="{StaticResource ListItemHoverFill}"/>
 776							<Setter Property="BorderBrush" Value="#ffb8d6fa"/>
 777							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 778						</Trigger>
 779						<Trigger Property="TreeViewItem.IsSelected" Value="true">
 780							<Setter Property="Background" Value="{StaticResource ListItemSelectedFill}"/>
 781							<Setter Property="BorderBrush" Value="#FF7da2ce"/>
 782							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 783						</Trigger>
 784						<MultiTrigger>
 785							<MultiTrigger.Conditions>
 786								<Condition Property="TreeViewItem.IsSelected" Value="true"/>
 787								<Condition Property="Selector.IsSelectionActive" Value="false"/>
 788							</MultiTrigger.Conditions>
 789							<Setter Property="Background" Value="{StaticResource ListItemSelectedInactiveFill}"/>
 790							<Setter Property="BorderBrush" Value="#FFd9d9d9"/>
 791							<Setter Property="BorderBrush" TargetName="InnerBorder" Value="#80FFFFFF"/>
 792						</MultiTrigger>
 793						<Trigger Property="UIElement.IsEnabled" Value="false">
 794							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
 795						</Trigger>
 796					</ControlTemplate.Triggers>
 797				</ControlTemplate>
 798			</Setter.Value>
 799		</Setter>
 800	</Style>
 801	<Style x:Key="ClassicNavigationStyle" TargetType="TreeViewItem" BasedOn="{StaticResource {x:Type TreeViewItem}}">
 802		<Setter Property="Template">
 803			<Setter.Value>
 804				<ControlTemplate TargetType="TreeViewItem">
 805					<StackPanel>
 806						<Grid>
 807							<Grid.ColumnDefinitions>
 808								<ColumnDefinition Width="*" />
 809							</Grid.ColumnDefinitions>
 810							<Grid.RowDefinitions>
 811								<RowDefinition Height="Auto" />
 812								<RowDefinition />
 813							</Grid.RowDefinitions>
 814							<Border BorderBrush="{TemplateBinding BorderBrush}" 
 815									BorderThickness="1" 
 816									Background="{TemplateBinding Background}" 
 817									CornerRadius="0" 
 818									SnapsToDevicePixels="true"
 819									Grid.Column="0" 
 820									Grid.ColumnSpan="2"
 821									MinHeight="23"
 822									x:Name="Item">
 823								<Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="0">
 824									<StackPanel x:Name="Panel" Orientation="Horizontal">
 825										<ToggleButton IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" Name="Expander">
 826											<ToggleButton.Style>
 827												<Style TargetType="ToggleButton">
 828													<Setter Property="UIElement.Focusable" Value="false" />
 829													<Setter Property="FrameworkElement.Width" Value="16" />
 830													<Setter Property="FrameworkElement.Height" Value="16" />
 831													<Setter Property="Control.Template">
 832														<Setter.Value>
 833															<ControlTemplate TargetType="ToggleButton">
 834																<Border Padding="5,5,5,5" Background="#00FFFFFF" Width="16" Height="16">
 835																	<Path Fill="#00FFFFFF" Stroke="#FF989898" Name="ExpandPath">
 836																		<Path.Data>
 837																			<PathGeometry Figures="M0,0L0,6L6,0z" />
 838																		</Path.Data>
 839																		<Path.RenderTransform>
 840																			<RotateTransform Angle="135" CenterX="3" CenterY="3" />
 841																		</Path.RenderTransform>
 842																	</Path>
 843																</Border>
 844																<ControlTemplate.Triggers>
 845																	<Trigger Property="UIElement.IsMouseOver" Value="True">
 846																		<Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF1BBBFA" />
 847																		<Setter TargetName="ExpandPath" Property="Shape.Fill"  Value="#00FFFFFF" />
 848																	</Trigger>
 849																	<Trigger Property="ToggleButton.IsChecked" Value="True">
 850																		<Setter TargetName="ExpandPath" Property="UIElement.RenderTransform">
 851																			<Setter.Value>
 852																				<RotateTransform Angle="180" CenterX="3" CenterY="3" />
 853																			</Setter.Value>
 854																		</Setter>
 855																		<Setter TargetName="ExpandPath" Property="Shape.Fill" Value="#FF595959" />
 856																		<Setter TargetName="ExpandPath" Property="Shape.Stroke" Value="#FF262626" />
 857																	</Trigger>
 858																</ControlTemplate.Triggers>
 859															</ControlTemplate>
 860														</Setter.Value>
 861													</Setter>
 862												</Style>
 863											</ToggleButton.Style>
 864										</ToggleButton>
 865										<Border x:Name="Bd"
 866												HorizontalAlignment="Stretch"
 867												BorderThickness="{TemplateBinding Border.BorderThickness}"
 868												BorderBrush="{TemplateBinding Border.BorderBrush}"
 869												Padding="{TemplateBinding Control.Padding}"
 870												Background="{TemplateBinding Panel.Background}"
 871												SnapsToDevicePixels="True">
 872											<ContentPresenter x:Name="PART_Header"
 873															  Content="{TemplateBinding HeaderedContentControl.Header}"
 874															  ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}"
 875															  ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}"
 876															  ContentTemplateSelector="{TemplateBinding HeaderedItemsControl.HeaderTemplateSelector}"
 877															  ContentSource="Header"
 878															  HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}"
 879															  VerticalAlignment="Center"
 880															  SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" />
 881										</Border>
 882									</StackPanel>
 883								</Border>
 884							</Border>
 885							<Border Padding="0 0 0 0" Grid.Column="0" Grid.Row="1">
 886								<ItemsPresenter x:Name="ItemsHost"/>
 887							</Border>
 888						</Grid>
 889					</StackPanel>
 890					<ControlTemplate.Triggers>
 891						<Trigger Property="TreeViewItem.IsExpanded" Value="False">
 892							<Setter TargetName="ItemsHost" Property="UIElement.Visibility" Value="Collapsed" />
 893						</Trigger>
 894						<Trigger Property="ItemsControl.HasItems" Value="False">
 895							<Setter TargetName="Expander" Property="UIElement.Visibility" Value="Hidden" />
 896						</Trigger>
 897						<Trigger Property="TreeViewItem.IsSelected" Value="true">
 898							<Setter Property="Background" Value="MidnightBlue"/>
 899							<Setter Property="Foreground" Value="White"/>
 900						</Trigger>
 901						<MultiTrigger>
 902							<MultiTrigger.Conditions>
 903								<Condition Property="TreeViewItem.IsSelected" Value="true"/>
 904								<Condition Property="Selector.IsSelectionActive" Value="false"/>
 905							</MultiTrigger.Conditions>
 906							<Setter Property="Background" Value="LightGray"/>
 907						</MultiTrigger>
 908						<Trigger Property="UIElement.IsEnabled" Value="false">
 909							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
 910						</Trigger>
 911					</ControlTemplate.Triggers>
 912				</ControlTemplate>
 913			</Setter.Value>
 914		</Setter>
 915	</Style>
 916
 917	<!-- style the volume and track slide -->
 918	<SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground" Color="Transparent"/>
 919	<LinearGradientBrush x:Key="HorizontalSliderTrackNormalBorder" EndPoint="0,1" StartPoint="0,0">
 920		<GradientStop Color="#FFAEB1AF" Offset="0.1"/>
 921		<GradientStop Color="White" Offset=".9"/>
 922	</LinearGradientBrush>
 923	<Style x:Key="SliderRepeatButtonColorStyle" TargetType="{x:Type RepeatButton}">
 924		<Setter Property="OverridesDefaultStyle" Value="true"/>
 925		<Setter Property="IsTabStop" Value="false"/>
 926		<Setter Property="Focusable" Value="false"/>
 927		<Setter Property="Template">
 928			<Setter.Value>
 929				<ControlTemplate TargetType="{x:Type RepeatButton}">
 930					<Rectangle Fill="#797a7a" Height="2"/>
 931				</ControlTemplate>
 932			</Setter.Value>
 933		</Setter>
 934	</Style>
 935	<Style x:Key="SliderRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
 936		<Setter Property="OverridesDefaultStyle" Value="true"/>
 937		<Setter Property="IsTabStop" Value="false"/>
 938		<Setter Property="Focusable" Value="false"/>
 939		<Setter Property="Template">
 940			<Setter.Value>
 941				<ControlTemplate TargetType="{x:Type RepeatButton}">
 942					<Rectangle Fill="Transparent"/>
 943				</ControlTemplate>
 944			</Setter.Value>
 945		</Setter>
 946	</Style>
 947	<Style x:Key="OrbThumbStyle" TargetType="{x:Type Thumb}">
 948		<Setter Property="Focusable" Value="false"/>
 949		<Setter Property="OverridesDefaultStyle" Value="true"/>
 950		<Setter Property="Height" Value="22"/>
 951		<Setter Property="Width" Value="11"/>
 952		<Setter Property="Foreground" Value="Gray"/>
 953		<Setter Property="Template">
 954			<Setter.Value>
 955				<ControlTemplate TargetType="{x:Type Thumb}">
 956					<Image Source="Images\Buttons\Small Orb.png"/>
 957					<ControlTemplate.Triggers>
 958						<Trigger Property="IsMouseOver" Value="true">
 959						</Trigger>
 960					</ControlTemplate.Triggers>
 961				</ControlTemplate>
 962			</Setter.Value>
 963		</Setter>
 964	</Style>
 965	<Style x:Key="MiniThumbStyle" TargetType="{x:Type Thumb}">
 966		<Setter Property="Focusable" Value="false"/>
 967		<Setter Property="OverridesDefaultStyle" Value="true"/>
 968		<Setter Property="Height" Value="6"/>
 969		<Setter Property="Width" Value="4"/>
 970		<Setter Property="Foreground" Value="Gray"/>
 971		<Setter Property="Template">
 972			<Setter.Value>
 973				<ControlTemplate TargetType="{x:Type Thumb}">
 974					<Rectangle Height="4" Width="4" Fill="#595a5a"/>
 975					<ControlTemplate.Triggers>
 976						<Trigger Property="IsMouseOver" Value="true">
 977						</Trigger>
 978					</ControlTemplate.Triggers>
 979				</ControlTemplate>
 980			</Setter.Value>
 981		</Setter>
 982	</Style>
 983	<Style x:Key="VolumeSlideStyle" TargetType="{x:Type Slider}">
 984		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
 985		<Setter Property="Background" Value="Transparent"/>
 986		<Setter Property="Foreground" Value="#FFC4C4C4"/>
 987		<Setter Property="Template">
 988			<Setter.Value>
 989				<ControlTemplate TargetType="{x:Type Slider}">
 990					<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
 991						<Grid>
 992							<Grid.RowDefinitions>
 993								<RowDefinition Height="Auto"/>
 994								<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
 995								<RowDefinition Height="Auto"/>
 996							</Grid.RowDefinitions>
 997							<Border x:Name="TrackBackground" Margin="0" VerticalAlignment="center" Height="4.0" Grid.Row="1" Background="{StaticResource HorizontalSliderTrackNormalBackground}" BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}" BorderThickness="1" CornerRadius="1">
 998								<Canvas Margin="-6,-1">
 999									<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"/>
1000								</Canvas>
1001							</Border>
1002							<Track x:Name="PART_Track" Grid.Row="1">
1003								<Track.DecreaseRepeatButton>
1004									<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
1005								</Track.DecreaseRepeatButton>
1006								<Track.IncreaseRepeatButton>
1007									<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
1008								</Track.IncreaseRepeatButton>
1009								<Track.Thumb>
1010									<Thumb x:Name="Thumb" Style="{StaticResource OrbThumbStyle}"/>
1011								</Track.Thumb>
1012							</Track>
1013						</Grid>
1014					</Border>
1015				</ControlTemplate>
1016			</Setter.Value>
1017		</Setter>
1018	</Style>
1019	<Style x:Key="TrackSlideStyle" TargetType="{x:Type Slider}">
1020		<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
1021		<Setter Property="Background" Value="Transparent"/>
1022		<Setter Property="Foreground" Value="#FFC4C4C4"/>
1023		<Setter Property="Template">
1024			<Setter.Value>
1025				<ControlTemplate TargetType="{x:Type Slider}">
1026					<Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
1027						<Grid>
1028							<Grid.RowDefinitions>
1029								<RowDefinition Height="Auto"/>
1030								<RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
1031								<RowDefinition Height="Auto"/>
1032							</Grid.RowDefinitions>
1033							<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">
1034								<Canvas Margin="-6,-1">
1035									<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"/>
1036								</Canvas>
1037							</Border>
1038							<Track x:Name="PART_Track" Grid.Row="1">
1039								<Track.DecreaseRepeatButton>
1040									<RepeatButton Style="{StaticResource SliderRepeatButtonColorStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
1041								</Track.DecreaseRepeatButton>
1042								<Track.IncreaseRepeatButton>
1043									<RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
1044								</Track.IncreaseRepeatButton>
1045								<Track.Thumb>
1046									<Thumb x:Name="Thumb" Style="{StaticResource MiniThumbStyle}"/>
1047								</Track.Th…

Large files files are truncated, but you can click here to view the full file