|
|
|
@ -1,7 +1,30 @@
|
|
|
|
<UserControl x:Class="WhackerLinkConsoleV2.Controls.ChannelBox"
|
|
|
|
<UserControl x:Class="WhackerLinkConsoleV2.Controls.ChannelBox"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
Width="220" Height="96" Background="Blue">
|
|
|
|
Width="220" Height="96" Background="DodgerBlue">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
|
|
|
<Style TargetType="Button">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
|
|
|
|
<Border Background="{TemplateBinding Background}">
|
|
|
|
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
|
|
|
</Setter>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Hover Effect -->
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
|
|
|
|
<Setter Property="Background" Value="#2980b9"/>
|
|
|
|
|
|
|
|
<!-- Hover Color -->
|
|
|
|
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="5">
|
|
|
|
<Grid Margin="5">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="41"/>
|
|
|
|
<ColumnDefinition Width="41"/>
|
|
|
|
@ -16,30 +39,31 @@
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Left Side PTT Button -->
|
|
|
|
<!-- Left Side PTT Button -->
|
|
|
|
<Button Background="Green" Name="PttButton" Click="PTTButton_Click" Grid.RowSpan="3" HorizontalAlignment="Left" Width="52" Margin="-7,-5,0,-5" Grid.ColumnSpan="2">
|
|
|
|
<Button MouseEnter="PttButton_MouseEnter" MouseLeave="PttButton_MouseLeave" Background="#FF2870AF" Name="PttButton" Click="PTTButton_Click" Grid.RowSpan="3" HorizontalAlignment="Left" Width="52" Margin="-7,-5,0,-5" Grid.ColumnSpan="2" BorderThickness="0,0,0,0">
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/instantptt.png" Width="24" Height="45"/>
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/instantptt.png" Width="52" Height="90"/>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Main Info Section -->
|
|
|
|
<!-- Main Info Section -->
|
|
|
|
<StackPanel Grid.Column="1" HorizontalAlignment="Left" Width="129" Margin="8,-4,0,5" Grid.RowSpan="2">
|
|
|
|
<StackPanel Grid.Column="1" HorizontalAlignment="Left" Width="129" Margin="8,-4,0,39" Grid.RowSpan="3">
|
|
|
|
<TextBlock Text="{Binding ChannelName}" FontWeight="Bold" Foreground="White" FontSize="15"/>
|
|
|
|
<TextBlock Text="{Binding ChannelName}" FontWeight="Bold" Foreground="White" FontSize="15"/>
|
|
|
|
<TextBlock Text="{Binding LastSrcId}" Foreground="LightGray" FontSize="12"/>
|
|
|
|
<TextBlock Text="{Binding LastSrcId}" Foreground="LightGray" FontSize="12"/>
|
|
|
|
<TextBlock Text="{Binding SystemName}" Foreground="LightGray" FontSize="12"/>
|
|
|
|
<TextBlock Text="{Binding SystemName}" Foreground="LightGray" FontSize="12"/>
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Volume Slider -->
|
|
|
|
<!-- Volume Slider -->
|
|
|
|
<Slider Grid.Column="2" Grid.RowSpan="2" Minimum="0" Maximum="4" Value="{Binding Volume, Mode=TwoWay}"
|
|
|
|
<Slider Grid.Column="2" Grid.RowSpan="3" Minimum="0" Maximum="4" Value="{Binding Volume, Mode=TwoWay}"
|
|
|
|
Orientation="Vertical" Height="80" VerticalAlignment="Top" Name="VolumeSlider"
|
|
|
|
Orientation="Vertical" Height="80" VerticalAlignment="Top" Name="VolumeSlider"
|
|
|
|
ValueChanged="VolumeSlider_ValueChanged" Margin="5,3,5,0" Grid.Row="1"/>
|
|
|
|
ValueChanged="VolumeSlider_ValueChanged" Margin="5,1,5,0"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Bottom Buttons -->
|
|
|
|
<!-- Bottom Buttons -->
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="2" Orientation="Horizontal" Margin="8,0,71,0">
|
|
|
|
<StackPanel Grid.Column="1" Grid.Row="2" Orientation="Horizontal" Margin="5,5,49,-5">
|
|
|
|
<Button Width="31" Height="33" Background="SteelBlue" x:Name="PageSelectButton" Click="PageSelectButton_Click">
|
|
|
|
<Button Width="40" Height="40" Background="#FF2870AF" x:Name="PageSelectButton" Click="PageSelectButton_Click" BorderThickness="0,0,0,0">
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/pageselect.png" Width="24" Height="24"/>
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/pageselect.png" Width="24" Height="24"/>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<Button Width="28" Height="33" Background="SteelBlue" x:Name="ChannelMarkerBtn" Click="ChannelMarkerBtn_Click">
|
|
|
|
<Button Width="40" Height="40" Background="#FF2870AF" x:Name="ChannelMarkerBtn" Click="ChannelMarkerBtn_Click" BorderThickness="0,0,0,0" Margin="1,0,0,0">
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/channelmarker.png" Width="24" Height="24"/>
|
|
|
|
<Image Source="pack://application:,,,/WhackerLinkConsoleV2;component/Assets/channelmarker.png" Width="24" Height="24"/>
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|
|
|
|
</UserControl>
|