/Application/GUI/Controls/Navigation.xaml
http://yet-another-music-application.googlecode.com/ · XAML · 108 lines · 85 code · 7 blank · 16 comment · 0 complexity · c8280320eb14a82210efb0f87ac68507 MD5 · raw file
- <!--Navigation.xaml
-
- The left-hand navigation tree.
-
- = = = = = = = = = =
-
- This code is part of the Stoffi Music Player Project.
- Visit our website at: stoffiplayer.com
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version
- 3 of the License, or (at your option) any later version.
-
- See stoffiplayer.com/license for more information.
- -->
- <UserControl x:Class="Stoffi.Navigation"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Stoffi"
- mc:Ignorable="d"
- Loaded="Navigation_Loaded"
- d:DesignHeight="300" d:DesignWidth="300">
- <Grid>
- <TreeView BorderThickness="0" x:Name="NavigationTree" Padding="0 10 0 0" KeyUp="NavigationTree_KeyUp">
- <TreeViewItem x:Name="NowPlaying" Margin="0 10" Selected="NowPlaying_Selected">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\NoteSingle.ico" Width="16" Height="16" Name="NowPlayingIcon"/>
- <TextBlock loc:Translate.Uid="NavigationNowPlaying" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
-
- <TreeViewItem x:Name="Library" Margin="0 10" IsExpanded="True">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\Library.ico" Width="16" Height="16" Name="MusicIcon" />
- <TextBlock loc:Translate.Uid="NavigationMusic" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
-
- <TreeViewItem x:Name="Files" Selected="Files_Selected" Padding="8 0 0 0">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\FileAudio.ico" Width="16" Height="16" Name="FilesIcon"/>
- <TextBlock loc:Translate.Uid="NavigationFiles" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
-
- <TreeViewItem x:Name="Youtube" Selected="Youtube_Selected" Padding="8 0 0 0">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\YouTube.ico" Width="16" Height="16" Name="YoutubeIcon"/>
- <TextBlock loc:Translate.Uid="NavigationYouTube" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
- </TreeViewItem>
-
- <TreeViewItem x:Name="Queue" Margin="0 10" Selected="Queue_Selected">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\Queue.ico" Width="16" Height="16" Name="QueueIcon"/>
- <TextBlock loc:Translate.Uid="NavigationQueue" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
-
- <TreeViewItem x:Name="History" Margin="0 10" Selected="History_Selected">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\Clock.ico" Width="16" Height="16" Name="HistoryIcon"/>
- <TextBlock loc:Translate.Uid="NavigationHistory" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
-
- <TreeViewItem x:Name="Playlists" Margin="0 10" Selected="Playlists_Selected" AllowDrop="True" IsExpanded="True">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\DiscAudio.ico" Width="16" Height="16" Name="PlaylistsIcon"/>
- <TextBlock loc:Translate.Uid="NavigationPlaylists" Text="{loc:Translate Text}" Margin="5 0"/>
- </StackPanel>
- </TreeViewItem.Header>
-
- <TreeViewItem x:Name="CreateNewPlaylist" Selected="CreateNewPlaylist_Selected" Drop="Playlist_Drop" Padding="8 0 0 0">
- <TreeViewItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Source="..\Images\Icons\DiscAudio.ico" Width="16" Height="16" Name="CreateNewIcon"/>
- <local:EditableTextBlock x:Name="CreateNewPlaylistETB"
- Margin="5 0"
- loc:Translate.Uid="NavigationCreateNew"
- Text="{loc:Translate Text}"
- FontStyle="Italic"
- Edited="CreateNewPlaylist_Edited"
- Canceled="CreateNewPlaylist_Canceled"/>
- </StackPanel>
- </TreeViewItem.Header>
- </TreeViewItem>
- </TreeViewItem>
- </TreeView>
- </Grid>
- </UserControl>