Progress on radio implementation
This commit is contained in:
parent
32d3610b07
commit
23098e0ebb
@ -7,73 +7,68 @@
|
|||||||
xmlns:local="clr-namespace:unison"
|
xmlns:local="clr-namespace:unison"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="Radios" Closing="Window_Closing" SizeToContent="WidthAndHeight" ResizeMode="NoResize">
|
Title="Radios" Closing="Window_Closing" SizeToContent="WidthAndHeight" ResizeMode="NoResize">
|
||||||
|
|
||||||
<Grid>
|
|
||||||
<StackPanel HorizontalAlignment="Left" Orientation="Vertical">
|
|
||||||
|
|
||||||
<GroupBox DockPanel.Dock="Top" Padding="0,4,0,0" Margin="5,0,5,0">
|
<StackPanel HorizontalAlignment="Left" Orientation="Vertical">
|
||||||
<GroupBox.Header>
|
<GroupBox DockPanel.Dock="Top" Padding="0,4,0,0" Margin="5,0,5,0">
|
||||||
<StackPanel Orientation="Horizontal">
|
<GroupBox.Header>
|
||||||
<TextBlock>
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock>
|
||||||
<emoji:EmojiInline Text="📻"/>
|
<emoji:EmojiInline Text="📻"/>
|
||||||
<Run Text="Search station"/>
|
<Run Text="Search station"/>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox.Header>
|
</GroupBox.Header>
|
||||||
<Grid VerticalAlignment="Top">
|
<Grid VerticalAlignment="Top">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
|
||||||
<StackPanel HorizontalAlignment="Stretch">
|
<StackPanel HorizontalAlignment="Stretch">
|
||||||
<TextBlock Text="Name" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,0,0,0" />
|
<TextBlock Text="Name" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Margin="5,0,0,0" />
|
||||||
<TextBox x:Name="NameSearch" KeyDown="SearchHandler" Text="" TextWrapping="Wrap" HorizontalAlignment="Left" Width="200" Margin="5,6,0,0"/>
|
<TextBox x:Name="NameSearch" KeyDown="SearchHandler" Text="" TextWrapping="Wrap" HorizontalAlignment="Left" Width="200" Margin="5,6,0,0"/>
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<StackPanel HorizontalAlignment="Stretch" Margin="20,0,0,0">
|
|
||||||
<TextBlock Text="Tags" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" />
|
|
||||||
<TextBox x:Name="TagSearch" KeyDown="SearchHandler" Text="" TextWrapping="Wrap" HorizontalAlignment="Left" Width="300" Margin="0,6,0,0"/>
|
|
||||||
</StackPanel>
|
|
||||||
|
|
||||||
<StackPanel HorizontalAlignment="Stretch" Margin="20,0,0,0">
|
|
||||||
<TextBlock Text="Country" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" />
|
|
||||||
<ComboBox x:Name="CountryList" SelectedIndex="0" KeyDown="SearchHandler" Width="240" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,2,0,0" ScrollViewer.CanContentScroll="False"/>
|
|
||||||
</StackPanel>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="5,7.5,0,0">
|
<StackPanel HorizontalAlignment="Stretch" Margin="20,0,0,0">
|
||||||
<Button Content="Search" Click="Search_Clicked"/>
|
<TextBlock Text="Tags" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" />
|
||||||
<Button Content="Reset" Click="Reset_Clicked" Margin="10,0,0,0"/>
|
<TextBox x:Name="TagSearch" KeyDown="SearchHandler" Text="" TextWrapping="Wrap" HorizontalAlignment="Left" Width="300" Margin="0,6,0,0"/>
|
||||||
<TextBlock x:Name="SearchStatus" Text="" Margin="15,1,0,0" FontStyle="Italic" />
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel HorizontalAlignment="Stretch" Margin="20,0,0,0">
|
||||||
|
<TextBlock Text="Country" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" />
|
||||||
|
<ComboBox x:Name="CountryList" SelectedIndex="0" KeyDown="SearchHandler" Width="240" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,2,0,0" ScrollViewer.CanContentScroll="False"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
|
||||||
</GroupBox>
|
|
||||||
|
|
||||||
<Grid Margin="5,10,5,5" MaxHeight="600" MinWidth="800" MaxWidth="800">
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="5,7.5,0,0">
|
||||||
<Grid.Resources>
|
<Button Content="Search" Click="Search_Clicked"/>
|
||||||
<DataTemplate x:Key="CountryTemplate">
|
<Button Content="Reset" Click="Reset_Clicked" Margin="10,0,0,0"/>
|
||||||
<emoji:TextBlock TextAlignment="Center" Text="{Binding Country}"/>
|
<TextBlock x:Name="SearchStatus" Text="" Margin="15,1,0,0" FontStyle="Italic" />
|
||||||
</DataTemplate>
|
</StackPanel>
|
||||||
</Grid.Resources>
|
</StackPanel>
|
||||||
<DataGrid Name="RadioListGrid" CanUserAddRows="False" CanUserDeleteRows="False"
|
|
||||||
IsReadOnly="True" MouseDoubleClick="Row_DoubleClick" SelectionMode="Single" CanUserReorderColumns="False"
|
|
||||||
HeadersVisibility="Column" GridLinesVisibility="None" AutoGenerateColumns="False" CanUserResizeRows="False"
|
|
||||||
>
|
|
||||||
<DataGrid.Columns>
|
|
||||||
<DataGridTemplateColumn Header="🏳️" CellTemplate="{StaticResource CountryTemplate}" MinWidth="25" />
|
|
||||||
<DataGridTextColumn Header="Name" Binding="{Binding Name}" MinWidth="50"/>
|
|
||||||
<DataGridTextColumn Header="Codec" Binding="{Binding Codec}" MinWidth="47"/>
|
|
||||||
<DataGridTextColumn Header="Bitrate" Binding="{Binding Bitrate}" MinWidth="47"/>
|
|
||||||
<DataGridTextColumn Header="Tags" Binding="{Binding Tags}" MinWidth="50"/>
|
|
||||||
</DataGrid.Columns>
|
|
||||||
<DataGrid.CellStyle>
|
|
||||||
<Style TargetType="DataGridCell">
|
|
||||||
<Setter Property="BorderThickness" Value="0"/>
|
|
||||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
|
||||||
</Style>
|
|
||||||
</DataGrid.CellStyle>
|
|
||||||
</DataGrid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</GroupBox>
|
||||||
|
|
||||||
</StackPanel>
|
<Grid Margin="5,10,5,5" MaxHeight="600" MinWidth="800" MaxWidth="800">
|
||||||
</Grid>
|
<Grid.Resources>
|
||||||
|
<DataTemplate x:Key="CountryTemplate">
|
||||||
|
<emoji:TextBlock TextAlignment="Center" Text="{Binding Country}"/>
|
||||||
|
</DataTemplate>
|
||||||
|
</Grid.Resources>
|
||||||
|
<DataGrid Name="RadioListGrid" CanUserAddRows="False" CanUserDeleteRows="False"
|
||||||
|
IsReadOnly="True" MouseDoubleClick="Row_DoubleClick" SelectionMode="Single" CanUserReorderColumns="False"
|
||||||
|
HeadersVisibility="Column" GridLinesVisibility="None" AutoGenerateColumns="False" CanUserResizeRows="False">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTemplateColumn Header="🏳️" CellTemplate="{StaticResource CountryTemplate}" MinWidth="25" />
|
||||||
|
<DataGridTextColumn Header="Name" Binding="{Binding Name}" MinWidth="50"/>
|
||||||
|
<DataGridTextColumn Header="Codec" Binding="{Binding Codec}" MinWidth="47"/>
|
||||||
|
<DataGridTextColumn Header="Bitrate" Binding="{Binding Bitrate}" MinWidth="47"/>
|
||||||
|
<DataGridTextColumn Header="Tags" Binding="{Binding Tags}" MinWidth="50"/>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
<DataGrid.CellStyle>
|
||||||
|
<Style TargetType="DataGridCell">
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.CellStyle>
|
||||||
|
</DataGrid>
|
||||||
|
</Grid>
|
||||||
|
</StackPanel>
|
||||||
</Window>
|
</Window>
|
||||||
|
Loading…
Reference in New Issue
Block a user