-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArdunoSetting.xaml
100 lines (81 loc) · 6.3 KB
/
ArdunoSetting.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<Window x:Class="NHMPh_music_player.ArdunoSetting"
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:local="clr-namespace:NHMPh_music_player"
mc:Ignorable="d"
Title="ArdunoSetting" Height="644" Width="449" Background="#282b30" WindowStyle="None" ResizeMode="NoResize" >
<Grid>
<StackPanel Orientation="Vertical" Margin="20">
<StackPanel Orientation="Horizontal">
<Grid HorizontalAlignment="Left" Width="150" Height="600">
<Border Background="Cyan" Width="150" Height="600" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="2" Margin="10,10,0,0"/>
<Border Background="#FF32363C" Width="150" Height="600" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,10,0,0">
<StackPanel Orientation="Vertical" Margin="10" >
<TextBlock Text="Color Setting" Foreground="White" FontSize="20" FontWeight="Bold" Margin="0,0,0,5" />
<TextBlock Text="Peak" Foreground="White" FontSize="18" FontWeight="Bold" Margin="0,0,0,5" HorizontalAlignment="Center" />
<Grid x:Name="Spectrum_ctn" Margin="0,0,0,0" HorizontalAlignment="Center">
</Grid>
</StackPanel>
</Border>
</Grid>
<StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Left" >
<Grid HorizontalAlignment="Left" Width="250" Height="80">
<Border Background="Cyan" Width="250" Height="90" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="2" Margin="10,10,0,0"/>
<Border Background="#FF32363C" Width="250" Height="80" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,10,0,0">
<StackPanel Margin="5" Orientation="Vertical">
<TextBlock Text="Select arduno connection" Foreground="White" FontSize="20" Margin="0,0,0,10"/>
<Grid >
<TextBlock Width="100" HorizontalAlignment="Left" Text="COM4" Foreground="White" FontSize="14" Margin="5,0,0,0"></TextBlock>
<ComboBox Width="200" Height="20" HorizontalAlignment="Left" Background="White" BorderBrush="White" Opacity="0.1" />
</Grid>
</StackPanel>
</Border>
</Grid>
<Grid HorizontalAlignment="Left" Width="250" Height="80">
<Border Background="Cyan" Width="250" Height="70" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="2" Margin="10,10,0,0"/>
<Border Background="#FF32363C" Width="238" Height="70" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,10,0,0">
<StackPanel Margin="5" Orientation="Vertical">
<TextBlock Text="Peak delay (ms)" Foreground="White" FontSize="20" Margin="0,0,0,10"/>
<Grid >
<StackPanel Orientation="Horizontal">
<Slider Maximum="3000" Minimum="0" Width="180" HorizontalAlignment="Left" SmallChange="2"/>
<TextBox Width="46" Background="#05FFFFFF" Foreground="White"></TextBox>
</StackPanel>
</Grid>
</StackPanel>
</Border>
</Grid>
<Grid HorizontalAlignment="Left" Width="250" Height="80">
<Border Background="Cyan" Width="250" Height="70" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="2" Margin="10,10,0,0"/>
<Border Background="#FF32363C" Width="238" Height="70" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,10,0,0">
<StackPanel Margin="5" Orientation="Vertical">
<TextBlock Text="Drop delay (ms)" Foreground="White" FontSize="20" Margin="0,0,0,10"/>
<Grid >
<StackPanel Orientation="Horizontal">
<Slider Maximum="3000" Minimum="0" Width="180" HorizontalAlignment="Left" SmallChange="2"/>
<TextBox Width="46" Background="#05FFFFFF" Foreground="White"></TextBox>
</StackPanel>
</Grid>
</StackPanel>
</Border>
</Grid>
<Grid HorizontalAlignment="Left" Width="250" Height="140" VerticalAlignment="Top">
<Border Background="Cyan" Width="250" Height="130" HorizontalAlignment="Left" VerticalAlignment="Top" CornerRadius="2" Margin="10,10,0,0"/>
<Border Background="#FF32363C" Width="238" Height="130" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="12,10,0,0">
<StackPanel Margin="5" Orientation="Vertical">
<TextBlock Text="Set Gradient" Foreground="White" FontSize="20" Margin="0,0,0,10"/>
<StackPanel Orientation="Vertical">
<Button Background="White" Width="75" Height="35" Margin="3"/>
<Button Background="White" Width="75" Height="35"/>
</StackPanel>
</StackPanel>
</Border>
</Grid>
<Button Content="Send data" Background="#FF32363C" BorderBrush="Cyan" Foreground="White" Width="181" Height="65" Click="SendColorData" Margin="0,70,0,0"/>
</StackPanel>
</StackPanel>
</StackPanel>
</Grid>
</Window>