/Application/GUI/Controls/Navigation.xaml
XAML | 108 lines | 85 code | 7 blank | 16 comment | 0 complexity | c8280320eb14a82210efb0f87ac68507 MD5 | raw file
1<!--Navigation.xaml 2 3 The left-hand navigation tree. 4 5 = = = = = = = = = = 6 7 This code is part of the Stoffi Music Player Project. 8 Visit our website at: stoffiplayer.com 9 10 This program is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License 12 as published by the Free Software Foundation; either version 13 3 of the License, or (at your option) any later version. 14 15 See stoffiplayer.com/license for more information. 16 --> 17<UserControl x:Class="Stoffi.Navigation" 18 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 19 xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation" 20 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 21 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 22 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 23 xmlns:local="clr-namespace:Stoffi" 24 mc:Ignorable="d" 25 Loaded="Navigation_Loaded" 26 d:DesignHeight="300" d:DesignWidth="300"> 27 <Grid> 28 <TreeView BorderThickness="0" x:Name="NavigationTree" Padding="0 10 0 0" KeyUp="NavigationTree_KeyUp"> 29 <TreeViewItem x:Name="NowPlaying" Margin="0 10" Selected="NowPlaying_Selected"> 30 <TreeViewItem.Header> 31 <StackPanel Orientation="Horizontal"> 32 <Image Source="..\Images\Icons\NoteSingle.ico" Width="16" Height="16" Name="NowPlayingIcon"/> 33 <TextBlock loc:Translate.Uid="NavigationNowPlaying" Text="{loc:Translate Text}" Margin="5 0"/> 34 </StackPanel> 35 </TreeViewItem.Header> 36 </TreeViewItem> 37 38 <TreeViewItem x:Name="Library" Margin="0 10" IsExpanded="True"> 39 <TreeViewItem.Header> 40 <StackPanel Orientation="Horizontal"> 41 <Image Source="..\Images\Icons\Library.ico" Width="16" Height="16" Name="MusicIcon" /> 42 <TextBlock loc:Translate.Uid="NavigationMusic" Text="{loc:Translate Text}" Margin="5 0"/> 43 </StackPanel> 44 </TreeViewItem.Header> 45 46 <TreeViewItem x:Name="Files" Selected="Files_Selected" Padding="8 0 0 0"> 47 <TreeViewItem.Header> 48 <StackPanel Orientation="Horizontal"> 49 <Image Source="..\Images\Icons\FileAudio.ico" Width="16" Height="16" Name="FilesIcon"/> 50 <TextBlock loc:Translate.Uid="NavigationFiles" Text="{loc:Translate Text}" Margin="5 0"/> 51 </StackPanel> 52 </TreeViewItem.Header> 53 </TreeViewItem> 54 55 <TreeViewItem x:Name="Youtube" Selected="Youtube_Selected" Padding="8 0 0 0"> 56 <TreeViewItem.Header> 57 <StackPanel Orientation="Horizontal"> 58 <Image Source="..\Images\Icons\YouTube.ico" Width="16" Height="16" Name="YoutubeIcon"/> 59 <TextBlock loc:Translate.Uid="NavigationYouTube" Text="{loc:Translate Text}" Margin="5 0"/> 60 </StackPanel> 61 </TreeViewItem.Header> 62 </TreeViewItem> 63 </TreeViewItem> 64 65 <TreeViewItem x:Name="Queue" Margin="0 10" Selected="Queue_Selected"> 66 <TreeViewItem.Header> 67 <StackPanel Orientation="Horizontal"> 68 <Image Source="..\Images\Icons\Queue.ico" Width="16" Height="16" Name="QueueIcon"/> 69 <TextBlock loc:Translate.Uid="NavigationQueue" Text="{loc:Translate Text}" Margin="5 0"/> 70 </StackPanel> 71 </TreeViewItem.Header> 72 </TreeViewItem> 73 74 <TreeViewItem x:Name="History" Margin="0 10" Selected="History_Selected"> 75 <TreeViewItem.Header> 76 <StackPanel Orientation="Horizontal"> 77 <Image Source="..\Images\Icons\Clock.ico" Width="16" Height="16" Name="HistoryIcon"/> 78 <TextBlock loc:Translate.Uid="NavigationHistory" Text="{loc:Translate Text}" Margin="5 0"/> 79 </StackPanel> 80 </TreeViewItem.Header> 81 </TreeViewItem> 82 83 <TreeViewItem x:Name="Playlists" Margin="0 10" Selected="Playlists_Selected" AllowDrop="True" IsExpanded="True"> 84 <TreeViewItem.Header> 85 <StackPanel Orientation="Horizontal"> 86 <Image Source="..\Images\Icons\DiscAudio.ico" Width="16" Height="16" Name="PlaylistsIcon"/> 87 <TextBlock loc:Translate.Uid="NavigationPlaylists" Text="{loc:Translate Text}" Margin="5 0"/> 88 </StackPanel> 89 </TreeViewItem.Header> 90 91 <TreeViewItem x:Name="CreateNewPlaylist" Selected="CreateNewPlaylist_Selected" Drop="Playlist_Drop" Padding="8 0 0 0"> 92 <TreeViewItem.Header> 93 <StackPanel Orientation="Horizontal"> 94 <Image Source="..\Images\Icons\DiscAudio.ico" Width="16" Height="16" Name="CreateNewIcon"/> 95 <local:EditableTextBlock x:Name="CreateNewPlaylistETB" 96 Margin="5 0" 97 loc:Translate.Uid="NavigationCreateNew" 98 Text="{loc:Translate Text}" 99 FontStyle="Italic" 100 Edited="CreateNewPlaylist_Edited" 101 Canceled="CreateNewPlaylist_Canceled"/> 102 </StackPanel> 103 </TreeViewItem.Header> 104 </TreeViewItem> 105 </TreeViewItem> 106 </TreeView> 107 </Grid> 108</UserControl>