|
9 | 9 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
10 | 10 | mc:Ignorable="d"> |
11 | 11 |
|
12 | | - <StackPanel Padding="36" Spacing="24"> |
| 12 | + <StackPanel Spacing="24"> |
13 | 13 |
|
14 | 14 | <!-- Storage Ring --> |
15 | 15 | <controls:SamplePanel Header="Storage Ring"> |
|
168 | 168 | <controls:SamplePanel.SideContent> |
169 | 169 | <StackPanel Spacing="12"> |
170 | 170 |
|
171 | | - <NumberBox |
172 | | - x:Name="testWidth" |
173 | | - Header="Width" |
174 | | - SpinButtonPlacementMode="Inline" |
175 | | - Value="100" /> |
| 171 | + <Grid ColumnSpacing="8"> |
| 172 | + <Grid.ColumnDefinitions> |
| 173 | + <ColumnDefinition Width="*" /> |
| 174 | + <ColumnDefinition Width="*" /> |
| 175 | + </Grid.ColumnDefinitions> |
176 | 176 |
|
177 | | - <NumberBox |
178 | | - x:Name="testHeight" |
179 | | - Header="Height" |
180 | | - SpinButtonPlacementMode="Inline" |
181 | | - Value="120" /> |
| 177 | + <NumberBox |
| 178 | + x:Name="testWidth" |
| 179 | + Grid.Column="0" |
| 180 | + Header="Width:" |
| 181 | + SpinButtonPlacementMode="Inline" |
| 182 | + Value="100" /> |
| 183 | + |
| 184 | + <NumberBox |
| 185 | + x:Name="testHeight" |
| 186 | + Grid.Column="1" |
| 187 | + Header="Height:" |
| 188 | + SpinButtonPlacementMode="Inline" |
| 189 | + Value="120" /> |
| 190 | + |
| 191 | + </Grid> |
182 | 192 |
|
183 | 193 | <Slider |
184 | 194 | x:Name="testValue" |
185 | | - Header="Value ( -10 to 110 )" |
| 195 | + Header="Value [-10, 110]:" |
186 | 196 | Maximum="110" |
187 | 197 | Minimum="-10" |
188 | 198 | SmallChange="{x:Bind ringCustom1.SmallChange, Mode=TwoWay}" |
189 | 199 | Value="50" /> |
190 | 200 |
|
191 | | - <TextBlock LineHeight="16"> |
192 | | - <Run Text="Percent:" /> |
193 | | - <LineBreak /> |
194 | | - <Run FontWeight="SemiBold" Text="{x:Bind ringCustom1.Percent.ToString(), Mode=OneWay}" /> |
195 | | - </TextBlock> |
| 201 | + <TextBox |
| 202 | + Header="Percent:" |
| 203 | + IsReadOnly="True" |
| 204 | + Text="{x:Bind ringCustom1.Percent, Mode=OneWay}" /> |
196 | 205 |
|
197 | 206 | <ToggleSwitch |
198 | 207 | x:Name="testIsEnabled" |
199 | | - Header="IsEnabled" |
| 208 | + Header="IsEnabled:" |
200 | 209 | IsOn="True" |
201 | 210 | OffContent="Disabled" |
202 | 211 | OnContent="Enabled" /> |
203 | 212 |
|
204 | 213 | <Slider |
205 | 214 | x:Name="testSAngle" |
206 | | - Header="StartAngle ( -180 to 180 )" |
| 215 | + Header="StartAngle [-180, 180]:" |
207 | 216 | Maximum="180" |
208 | 217 | Minimum="-180" |
209 | 218 | Value="-150" /> |
210 | 219 |
|
211 | 220 | <Slider |
212 | 221 | x:Name="testMAngle" |
213 | | - Header="MaxAngle ( -180 to 540 )" |
| 222 | + Header="MaxAngle [-180, 540]:" |
214 | 223 | Maximum="540" |
215 | 224 | Minimum="-180" |
216 | 225 | Value="150" /> |
217 | 226 |
|
218 | | - <Grid HorizontalAlignment="Stretch" ColumnSpacing="16"> |
| 227 | + <Grid HorizontalAlignment="Stretch" ColumnSpacing="8"> |
219 | 228 | <Grid.ColumnDefinitions> |
220 | 229 | <ColumnDefinition Width="*" /> |
221 | 230 | <ColumnDefinition Width="*" /> |
222 | 231 | </Grid.ColumnDefinitions> |
223 | 232 | <NumberBox |
224 | 233 | x:Name="testValueThickness" |
225 | 234 | Grid.Column="0" |
226 | | - Header="ValueRingThickness" |
| 235 | + Header="Value ring thickness:" |
227 | 236 | Maximum="32" |
228 | 237 | Minimum="2" |
229 | | - SpinButtonPlacementMode="Compact" |
| 238 | + SpinButtonPlacementMode="Inline" |
230 | 239 | Value="12" /> |
231 | 240 |
|
232 | 241 | <NumberBox |
233 | 242 | x:Name="testTrackThickness" |
234 | 243 | Grid.Column="1" |
235 | | - Header="TrackRingThickness" |
| 244 | + Header="Track ring thickness:" |
236 | 245 | Maximum="32" |
237 | 246 | Minimum="2" |
238 | | - SpinButtonPlacementMode="Compact" |
| 247 | + SpinButtonPlacementMode="Inline" |
239 | 248 | Value="4" /> |
240 | 249 | </Grid> |
241 | 250 | </StackPanel> |
|
406 | 415 |
|
407 | 416 | <Slider |
408 | 417 | x:Name="barTestValue" |
409 | | - Header="Value ( -10 to 110 )" |
| 418 | + Header="Value [-10, 110]:" |
410 | 419 | Maximum="110" |
411 | 420 | Minimum="-10" |
412 | 421 | SmallChange="{x:Bind BarCustom01.SmallChange, Mode=TwoWay}" |
413 | 422 | Value="50" /> |
414 | 423 |
|
415 | | - <TextBlock LineHeight="16"> |
416 | | - <Run Text="Percent:" /> |
417 | | - <LineBreak /> |
418 | | - <Run FontWeight="SemiBold" Text="{x:Bind BarCustom01.Percent.ToString(), Mode=OneWay}" /> |
419 | | - </TextBlock> |
| 424 | + <TextBox |
| 425 | + Header="Percent:" |
| 426 | + IsReadOnly="True" |
| 427 | + Text="{x:Bind BarCustom01.Percent, Mode=OneWay}" /> |
420 | 428 |
|
421 | 429 | <ToggleSwitch |
422 | 430 | x:Name="barTestIsEnabled" |
423 | | - Header="IsEnabled" |
| 431 | + Header="IsEnabled:" |
424 | 432 | IsOn="True" |
425 | 433 | OffContent="Disabled" |
426 | 434 | OnContent="Enabled" /> |
427 | 435 |
|
428 | | - <Grid HorizontalAlignment="Stretch" ColumnSpacing="16"> |
| 436 | + <Grid HorizontalAlignment="Stretch" ColumnSpacing="8"> |
429 | 437 | <Grid.ColumnDefinitions> |
430 | 438 | <ColumnDefinition Width="*" /> |
431 | 439 | <ColumnDefinition Width="*" /> |
|
434 | 442 | <NumberBox |
435 | 443 | x:Name="barTestValueThickness" |
436 | 444 | Grid.Column="0" |
437 | | - Header="ValueRingThickness" |
| 445 | + Header="Value ring thickness:" |
438 | 446 | Maximum="32" |
439 | 447 | Minimum="2" |
440 | | - SpinButtonPlacementMode="Compact" |
| 448 | + SpinButtonPlacementMode="Inline" |
441 | 449 | Value="12" /> |
442 | 450 |
|
443 | 451 | <NumberBox |
444 | 452 | x:Name="barTestTrackThickness" |
445 | 453 | Grid.Column="1" |
446 | | - Header="TrackRingThickness" |
| 454 | + Header="Track ring thickness:" |
447 | 455 | Maximum="32" |
448 | 456 | Minimum="2" |
449 | | - SpinButtonPlacementMode="Compact" |
| 457 | + SpinButtonPlacementMode="Inline" |
450 | 458 | Value="4" /> |
451 | 459 |
|
452 | 460 | </Grid> |
|
0 commit comments