<Window x:Class="LedCubeController.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LED Cube Controller" Height="350" Width="525" Background="{DynamicResource {x:Static SystemColors.InfoBrushKey}}" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid>
        <ComboBox x:Name="portComboBox" HorizontalAlignment="Left" Margin="87,14,0,0" VerticalAlignment="Top" Width="120"/>
        <Button Content="Connect" HorizontalAlignment="Left" Margin="251,14,0,0" VerticalAlignment="Top" Width="75" RenderTransformOrigin="1.11,-0.765" Click="connectClick"/>
        <Label x:Name="connectionStatusLabel" Content="Not connected" HorizontalAlignment="Left" Margin="361,8,0,0" VerticalAlignment="Top" FontSize="18" Foreground="#FFEE1919" FontWeight="Bold"/>
        <RadioButton x:Name="textModeRB" Content="Text Mode" HorizontalAlignment="Left" Margin="10,58,0,0" VerticalAlignment="Top" GroupName="DisplayType" IsChecked="True" Click="rbCheckedChanged"/>
        <RadioButton Content="Animation Mode" HorizontalAlignment="Left" Margin="10,235,0,0" VerticalAlignment="Top" GroupName="DisplayType" Click="rbCheckedChanged"/>
        <TextBox x:Name="textToDisplayTB" HorizontalAlignment="Left" Height="23" Margin="10,113,0,0" TextWrapping="Wrap" Text="HELLO WORLD" VerticalAlignment="Top" Width="484" CharacterCasing="Upper" AutoWordSelection="True" MaxLength="54" MaxLines="1" IsUndoEnabled="False"/>
        <Label x:Name="textToDisplayLabel" Content="Text to display:" HorizontalAlignment="Left" Margin="11,89,0,0" VerticalAlignment="Top"/>
        <Slider x:Name="blueSlider" HorizontalAlignment="Left" Margin="156,157,0,0" VerticalAlignment="Top" Width="105" SelectionStart="64" Maximum="63" Interval="1" SmallChange="1" ValueChanged="sliderValueChanged"/>
        <Canvas x:Name="colorCanvas" HorizontalAlignment="Left" Height="33" Margin="421,157,0,0" VerticalAlignment="Top" Width="73" Background="#FFF10A0A"/>
        <Slider x:Name="greenSlider" HorizontalAlignment="Left" Margin="286,157,0,0" VerticalAlignment="Top" Width="105" SelectionStart="64" Maximum="63" Interval="1" SmallChange="1" ValueChanged="sliderValueChanged"/>
        <Slider x:Name="redSlider" HorizontalAlignment="Left" Margin="25,157,0,0" VerticalAlignment="Top" Width="105" SelectionStart="64" Maximum="63" Value="64" Interval="1" SmallChange="1" ValueChanged="sliderValueChanged" SelectionEnd="63"/>
        <Label x:Name="rLabel" Content="R:" HorizontalAlignment="Left" Margin="11,154,0,0" VerticalAlignment="Top"/>
        <Label x:Name="gLabel" Content="G:" HorizontalAlignment="Left" Margin="264,154,0,0" VerticalAlignment="Top"/>
        <Label x:Name="bLabel" Content="B:" HorizontalAlignment="Left" Margin="136,154,0,0" VerticalAlignment="Top"/>
        <ComboBox x:Name="timeIntervalCB" HorizontalAlignment="Left" Margin="136,202,0,0" VerticalAlignment="Top" Width="58" SelectedIndex="0">
            <ComboBoxItem Content="0.25s"/>
            <ComboBoxItem Content="0.5s"/>
            <ComboBoxItem Content="1s"/>
            <ComboBoxItem Content="2s"/>
        </ComboBox>
        <Label x:Name="changeIntervalLabel" Content="Change interval:" HorizontalAlignment="Left" Margin="11,198,0,0" VerticalAlignment="Top"/>
        <Button x:Name="displayTextButton" Content="Display Text!" HorizontalAlignment="Left" Margin="400,202,0,0" VerticalAlignment="Top" Width="102" RenderTransformOrigin="0.623,-0.577" Click="displayText" IsEnabled="False"/>
        <Label Content="Select port:" HorizontalAlignment="Left" Margin="11,14,0,0" VerticalAlignment="Top"/>
        <Button x:Name="anim1" Content="1" HorizontalAlignment="Left" Margin="70,270,0,0" VerticalAlignment="Top" Width="75" Click="selectAnimation" Tag="1" IsEnabled="False"/>
        <Button x:Name="anim2" Content="2" HorizontalAlignment="Left" Margin="220,270,0,0" VerticalAlignment="Top" Width="75" Click="selectAnimation" Tag="2" IsEnabled="False"/>
        <Button x:Name="anim3" Content="3" HorizontalAlignment="Left" Margin="370,270,0,0" VerticalAlignment="Top" Width="75" Click="selectAnimation" Tag="3" IsEnabled="False"/>
    </Grid>
</Window>
