2022-11-13 14:58:30 +00:00
|
|
|
|
<Window x:Class="unison.Shuffle"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:emoji="clr-namespace:Emoji.Wpf;assembly=Emoji.Wpf"
|
2022-11-13 21:27:21 +00:00
|
|
|
|
xmlns:properties="clr-namespace:unison.Resources" xmlns:sys="clr-namespace:System;assembly=System.Runtime"
|
2022-11-13 14:58:30 +00:00
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="Shuffle" Closing="Window_Closing" SizeToContent="WidthAndHeight" ResizeMode="NoResize">
|
|
|
|
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
|
<x:Array x:Key="FilterType" Type="sys:String">
|
2022-11-16 23:30:35 +00:00
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Song"/>
|
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Artist"/>
|
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Album"/>
|
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Year"/>
|
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Genre"/>
|
|
|
|
|
<x:Static Member="properties:Resources.FilterType_Directory"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</x:Array>
|
|
|
|
|
<x:Array x:Key="OperatorTypeA" Type="sys:String">
|
2022-11-16 23:30:35 +00:00
|
|
|
|
<x:Static Member="properties:Resources.Operator_Contains"/>
|
|
|
|
|
<x:Static Member="properties:Resources.Operator_Is"/>
|
|
|
|
|
<x:Static Member="properties:Resources.Operator_IsNot"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</x:Array>
|
|
|
|
|
<x:Array x:Key="OperatorTypeB" Type="sys:String">
|
2022-11-16 23:30:35 +00:00
|
|
|
|
<x:Static Member="properties:Resources.Operator_Is"/>
|
|
|
|
|
<x:Static Member="properties:Resources.Operator_IsNot"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</x:Array>
|
|
|
|
|
<x:Array x:Key="OperatorTypeC" Type="sys:String">
|
2022-11-16 23:30:35 +00:00
|
|
|
|
<x:Static Member="properties:Resources.Operator_Is"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</x:Array>
|
|
|
|
|
|
|
|
|
|
<DataTemplate x:Key="FilterPanel">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
|
|
|
|
<ComboBox x:Name="FilterType" SelectionChanged="FilterType_SelectionChanged" ItemsSource="{StaticResource FilterType}" SelectedIndex="0" Width="100" ScrollViewer.CanContentScroll="False" FocusVisualStyle="{x:Null}"/>
|
|
|
|
|
<ComboBox x:Name="FilterOperator" SelectionChanged="OperatorType_SelectionChanged" ItemsSource="{StaticResource OperatorTypeA}" SelectedIndex="0" Width="80" ScrollViewer.CanContentScroll="False" Margin="5,0,0,0" FocusVisualStyle="{x:Null}"/>
|
|
|
|
|
<ComboBox x:Name="FilterList" SelectedIndex="0" Width="240" Visibility="Collapsed" ScrollViewer.CanContentScroll="False" Margin="5,0,0,0" FocusVisualStyle="{x:Null}"/>
|
|
|
|
|
<TextBox x:Name="FilterValue" KeyUp="QueryFilterHandler" Width="240" Margin="5,0,0,0"/>
|
|
|
|
|
<Button Content="-" Padding="5, 2" Click="RemoveFilter_Clicked" Width="20" VerticalAlignment="Bottom" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/>
|
|
|
|
|
<Button Content="+" Padding="5, 2" Click="AddFilter_Clicked" Width="20" VerticalAlignment="Bottom" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}" Margin="5,0,0,0"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<StackPanel>
|
|
|
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Vertical" Margin="5,0,5,5">
|
|
|
|
|
<GroupBox DockPanel.Dock="Top" Padding="0,4,0,0">
|
|
|
|
|
<GroupBox.Header>
|
|
|
|
|
<TextBlock>
|
|
|
|
|
<emoji:EmojiInline Text="🔡"/>
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Run Text="{x:Static properties:Resources.Shuffle_Filter}"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</TextBlock>
|
|
|
|
|
</GroupBox.Header>
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="5,0,5,0">
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="FilterPanel">
|
|
|
|
|
<ContentPresenter ContentTemplate="{StaticResource FilterPanel}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel x:Name="SongFilterPanel" Margin="0,10,0,0">
|
|
|
|
|
<TextBlock>
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Run Text="{x:Static properties:Resources.Shuffle_FilterSongNumber}"/><Run Text=" "/><Run x:Name="SongFilterNumber" FontWeight="Bold"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<StackPanel Margin="0,5,0,0">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,5">
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Button Content="{x:Static properties:Resources.Shuffle_FilterQuery}" Click="UpdateFilter_Clicked" Padding="5, 2" VerticalAlignment="Bottom" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}" Margin="0,0,10,0"/>
|
|
|
|
|
<Button Content="{x:Static properties:Resources.Shuffle_FilterReset}" Click="Reset_Clicked" Padding="5, 2" VerticalAlignment="Bottom" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}"/>
|
|
|
|
|
<TextBlock x:Name="QueryFilterText" Text="{x:Static properties:Resources.Shuffle_Querying1}" Margin="15,3,0,0" FontStyle="Italic" Visibility="Collapsed" />
|
2022-11-17 00:16:10 +00:00
|
|
|
|
<TextBlock x:Name="QueryFilterText2" Text="{x:Static properties:Resources.Shuffle_Querying2}" Margin="3,3,0,0" FontStyle="Italic" Visibility="Collapsed" />
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
2022-11-17 00:16:10 +00:00
|
|
|
|
<GroupBox DockPanel.Dock="Right" Padding="0,4,0,0" Width="270">
|
2022-11-13 14:58:30 +00:00
|
|
|
|
<GroupBox.Header>
|
|
|
|
|
<TextBlock>
|
|
|
|
|
<emoji:EmojiInline Text="➕"/>
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Run Text="{x:Static properties:Resources.Shuffle_Queue}"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</TextBlock>
|
|
|
|
|
</GroupBox.Header>
|
|
|
|
|
<StackPanel Orientation="Vertical" Margin="5,5,5,0">
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<TextBlock Text="{x:Static properties:Resources.Shuffle_QueueSongs}" Margin="0,0,5,5"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
<TextBox x:Name="SongNumber" KeyUp="AddToQueueHandler" PreviewTextInput="QueueValidationTextBox" MaxLength="4" Text="15" Width="35" HorizontalAlignment="Left" VerticalAlignment="Top"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Button Content="{x:Static properties:Resources.Shuffle_Queue}" Click="AddToQueue_Clicked" Padding="5, 2" HorizontalAlignment="Left" FocusVisualStyle="{x:Null}"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
<TextBlock x:Name="SearchStatus" Margin="15,3,0,0" FontStyle="Italic" Visibility="Collapsed">
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Run Text="{x:Static properties:Resources.Shuffle_ButtonMessage1}"/><Run Text=" "/><Run x:Name="NumberAddedSongs"/><Run Text=" "/><Run Text="{x:Static properties:Resources.Shuffle_ButtonMessage2}"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</TextBlock>
|
2022-11-17 00:16:10 +00:00
|
|
|
|
<TextBlock x:Name="SearchStatus2" Text="{x:Static properties:Resources.Shuffle_ButtonMessage3}" Margin="3,3,0,0" FontStyle="Italic" Visibility="Collapsed"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
|
2022-11-17 00:16:10 +00:00
|
|
|
|
<GroupBox DockPanel.Dock="Left" Padding="0,4,0,0" Width="230" Margin="0,0,5,0">
|
2022-11-13 14:58:30 +00:00
|
|
|
|
<GroupBox.Header>
|
|
|
|
|
<TextBlock>
|
|
|
|
|
<emoji:EmojiInline Text="♾️"/>
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<Run Text="{x:Static properties:Resources.Shuffle_Continuous}"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</TextBlock>
|
|
|
|
|
</GroupBox.Header>
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="5,7,5,0">
|
|
|
|
|
<CheckBox x:Name="ContinuousShuffle" Checked="ContinuousShuffle_Checked" Unchecked="ContinuousShuffle_Checked" FocusVisualStyle="{x:Null}" VerticalAlignment="Top">
|
2022-11-13 21:27:21 +00:00
|
|
|
|
<TextBlock Text="{x:Static properties:Resources.Shuffle_ContinuousEnable}" TextWrapping="Wrap"/>
|
2022-11-13 14:58:30 +00:00
|
|
|
|
</CheckBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</GroupBox>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Window>
|