-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
124 lines (122 loc) · 12.8 KB
/
MainWindow.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<Window x:Class="NanoPanel.MainWindow"
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:NanoPanel"
xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d"
Title="NanoPanel" ResizeMode="NoResize" SizeToContent="WidthAndHeight"
Icon="icons/red.ico">
<StackPanel Orientation="Vertical">
<tb:TaskbarIcon x:Name="TaskbarIcon" IconSource="icons/red.ico" ToolTipText="NanoPanel" />
<GroupBox Header="Analog pins" BorderBrush="#FF5187A8" Background="#FFF3F1D8" Width="248" HorizontalAlignment="Left">
<StackPanel Orientation="Vertical" Margin="0,0,0,0" Height="152" HorizontalAlignment="Left" VerticalAlignment="Top">
<StackPanel Orientation="Horizontal">
<Label Content="A0
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A0_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" UndoLimit="0" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A0_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" LargeChange="10" SmallChange="1"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A1
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A1_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A1_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A2
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A2_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A2_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A3
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A3_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A3_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A4
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A4_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A4_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A5
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A5_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A5_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A6
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A6_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A6_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="A7
" HorizontalAlignment="Left" Padding="0,0,5,0" VerticalAlignment="Top" Height="18"/>
<TextBox x:Name="A7_number" HorizontalAlignment="Left" Text="0" TextWrapping="Wrap" VerticalAlignment="Top" Width="32" TextChanged="TextBox_TextChanged" TextAlignment="Right" IsReadOnly="True"/>
<ProgressBar x:Name="A7_bar" HorizontalAlignment="Left" Height="18" VerticalAlignment="Top" Width="183" Maximum="1023" SmallChange="1" LargeChange="10"/>
</StackPanel>
</StackPanel>
</GroupBox>
<GroupBox Header="Digital pins" BorderBrush="#FF5187A8" Background="#FFC7E2E8" Width="94" HorizontalAlignment="Left">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<Label Content="D2
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D2_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D2_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D3
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D3_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D3_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D4
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D4_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D4_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D5
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D5_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D5_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D6
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D6_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D6_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D7
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D7_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D7_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D8
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D8_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D8_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D9
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D9_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D9_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D10
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D10_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D10_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D11
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D11_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D11_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D12
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D12_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D12_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Label Content="D13
" HorizontalAlignment="Left" Padding="0,0,10,0" VerticalContentAlignment="Bottom" VerticalAlignment="Top" Height="18" Width="32" HorizontalContentAlignment="Right"/>
<CheckBox x:Name="D13_output" ToolTip="Enable output." Margin="0,0,10,0" VerticalAlignment="Center" Background="#FFE8E8B4"></CheckBox>
<local:DigitalPinFlip x:Name="D13_status" Width="16" Height="16" ToolTip="If output enabled click to flip state."/>
</StackPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</Window>