71
71
</StatusBar >
72
72
</DockPanel >
73
73
74
- <TextBox Background =" Transparent" Grid.Row=" 1" Grid.RowSpan=" 2" Grid.Column=" 0" Margin =" 5,5,5,5" x : Name =" TextBoxRoute" TextWrapping =" Wrap" />
74
+ <TextBox Background =" Transparent" Grid.Row=" 1" Grid.RowSpan=" 2" Grid.Column=" 0" Margin =" 5,5,5,5"
75
+ x : Name =" TextBoxRoute" TextWrapping =" Wrap" />
75
76
76
77
<Grid Grid.Row=" 1" Grid.Column=" 1" >
77
78
<Grid .RowDefinitions>
84
85
<ColumnDefinition Width =" *" />
85
86
</Grid .ColumnDefinitions>
86
87
87
- <Button Background =" Transparent" Grid.Row=" 0" Grid.Column=" 0" Margin =" 20,15,20,15" x : Name =" ButtonLink" Click =" Link" >连接</Button >
88
- <Button Background =" Transparent" Grid.Row=" 0" Grid.Column=" 1" Margin =" 20,15,20,15" x : Name =" ButtonUnlink" Click =" UnLink" >断开</Button >
89
- <Button Background =" Transparent" Grid.Row=" 1" Grid.Column=" 0" Margin =" 20,15,20,15" x : Name =" ButtonResetLocation" Click =" ResetLocation" >重置定位</Button >
90
- <Button Background =" Transparent" Grid.Row=" 1" Grid.Column=" 1" Margin =" 20,15,20,15" x : Name =" ButtonQuit" Click =" Quit" >退出</Button >
88
+ <Button Background =" Transparent" Grid.Row=" 0" Grid.Column=" 0" Margin =" 20,15,20,15" x : Name =" ButtonLink"
89
+ Click =" Link" >
90
+ 连接
91
+ </Button >
92
+ <Button Background =" Transparent" Grid.Row=" 0" Grid.Column=" 1" Margin =" 20,15,20,15" x : Name =" ButtonUnlink"
93
+ Click =" UnLink" >
94
+ 断开
95
+ </Button >
96
+ <Button Background =" Transparent" Grid.Row=" 1" Grid.Column=" 0" Margin =" 20,15,20,15"
97
+ x : Name =" ButtonResetLocation" Click =" ResetLocation" >
98
+ 重置定位
99
+ </Button >
100
+ <Button Background =" Transparent" Grid.Row=" 1" Grid.Column=" 1" Margin =" 20,15,20,15" x : Name =" ButtonQuit"
101
+ Click =" Quit" >
102
+ 退出
103
+ </Button >
91
104
</Grid >
92
105
93
106
<Grid Grid.Row=" 2" Grid.Column=" 1" >
100
113
101
114
<Grid .ColumnDefinitions>
102
115
<ColumnDefinition Width =" *" />
116
+ <ColumnDefinition Width =" *" />
103
117
</Grid .ColumnDefinitions>
104
118
105
- <ProgressBar Grid.Row=" 0" Grid.Column=" 0" Margin =" 20,0,20,0" Name =" ProgressBarRun" >
119
+ <ProgressBar Grid.Row=" 0" Grid.Column=" 0" Grid.ColumnSpan= " 2 " Margin =" 20,0,20,0" Name =" ProgressBarRun" >
106
120
<ProgressBar .Resources>
107
121
<Style TargetType =" Border" >
108
122
<Setter Property =" CornerRadius" Value =" 0" />
109
123
</Style >
110
124
</ProgressBar .Resources>
111
125
</ProgressBar >
112
126
113
- <Grid Grid.Row=" 1" Grid.Column=" 0" >
127
+ <Grid Grid.Row=" 1" Grid.Column=" 0" Grid.ColumnSpan= " 2 " >
114
128
<Grid .ColumnDefinitions>
115
129
<ColumnDefinition Width =" Auto" />
116
130
<ColumnDefinition Width =" *" />
119
133
</Grid .ColumnDefinitions>
120
134
121
135
<Label Background =" Transparent" Grid.Row=" 0" Grid.Column=" 0" Margin =" 20,10,0,10" x : Name =" LabelRunTimes" >循环次数</Label >
122
- <xctk : IntegerUpDown Background =" Transparent" Grid.Row=" 0" Grid.Column=" 1" Margin =" 20,10,0,10" Increment =" 1" Minimum =" 1" Value =" 9" x : Name =" IntegerUpDownRunTimes" />
136
+ <xctk : IntegerUpDown Background =" Transparent" Grid.Row=" 0" Grid.Column=" 1" Margin =" 20,10,0,10"
137
+ Increment =" 1" Minimum =" 1" Value =" 9" x : Name =" IntegerUpDownRunTimes" />
123
138
<Label Background =" Transparent" Grid.Row=" 0" Grid.Column=" 2" Margin =" 20,10,0,10" x : Name =" LabelSpeed" >跑步速度 m/s</Label >
124
- <xctk : DoubleUpDown Background =" Transparent" Grid.Row=" 0" Grid.Column=" 3" Margin =" 20,10,20,10" Increment =" 0.5" Maximum =" 10.0" Minimum =" 0.1" Value =" 3"
139
+ <xctk : DoubleUpDown Background =" Transparent" Grid.Row=" 0" Grid.Column=" 3" Margin =" 20,10,20,10"
140
+ Increment =" 0.5" Maximum =" 10.0" Minimum =" 0.1" Value =" 3"
125
141
x : Name =" DoubleUpDownSpeed" />
126
142
</Grid >
127
143
128
- <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 0" Margin =" 20,5,20,5" x : Name =" ButtonRun" Click =" StartRun" >开始跑步</Button >
129
- <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 0" Margin =" 20,5,20,5" x : Name =" ButtonStop" Click =" StopRun" Visibility =" Hidden" >停止跑步</Button >
144
+ <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 0" Grid.ColumnSpan=" 2"
145
+ Margin =" 20,5,20,5" x : Name =" ButtonRun" Click =" StartRun" >
146
+ 开始跑步
147
+ </Button >
148
+ <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 0" Margin =" 20,5,20,5"
149
+ x : Name =" ButtonStop" Click =" StopRun" Visibility =" Hidden" >
150
+ 停止跑步
151
+ </Button >
152
+ <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 1" Margin =" 20,5,20,5"
153
+ x : Name =" ButtonPause" Click =" PauseRun" Visibility =" Hidden" >
154
+ 暂停跑步
155
+ </Button >
156
+ <Button Background =" Transparent" Grid.Row=" 2" Grid.RowSpan=" 2" Grid.Column=" 1" Margin =" 20,5,20,5"
157
+ x : Name =" ButtonResume" Click =" ResumeRun" Visibility =" Hidden" >
158
+ 恢复跑步
159
+ </Button >
130
160
</Grid >
131
161
</Grid >
132
162
</Window >
0 commit comments