|
8 | 8 | xmlns:controls="clr-namespace:OATControl.Controls"
|
9 | 9 | xmlns:converters="clr-namespace:OATControl.Converters"
|
10 | 10 | mc:Ignorable="d"
|
11 |
| - Title="{Binding Version, StringFormat={} OpenAstroTracker Control V{0}}" MinHeight="715" MinWidth="790" Height="717" Width="770"> |
| 11 | + Title="{Binding Version, StringFormat={} OpenAstroTracker Control V{0}}" MinHeight="720" MinWidth="790" Height="720" Width="770"> |
12 | 12 | <Window.Resources>
|
13 | 13 | <converters:BoolToStringConverter x:Key="SlewModeConverter" TrueString="Pulsed" FalseString="Continuous" />
|
14 | 14 | <converters:BoolToVisibilityConverter x:Key="TrueBoolToHidden" Collapse="False" IsReversed="True"/>
|
|
38 | 38 | <Setter Property="MinWidth" Value="50" />
|
39 | 39 | </Style>
|
40 | 40 | <Style x:Key="NumericBorder" TargetType="Controls:NumericUpDown" >
|
41 |
| - <Setter Property="FontSize" Value="20" /> |
| 41 | + <Setter Property="FontSize" Value="14" /> |
42 | 42 | <Setter Property="MinWidth" Value="50" />
|
43 | 43 | </Style>
|
44 | 44 | <Style x:Key="DockBlockStatus" TargetType="DockPanel" >
|
|
204 | 204 | <Button Grid.Row="1" Grid.Column="5" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowUp}" Command="{Binding ArrowCommand}" CommandParameter="RS+" />
|
205 | 205 |
|
206 | 206 | <TextBlock Grid.Row="2" Grid.Column="0" Text="RA" Style="{StaticResource TextBlockHeading}" />
|
207 |
| - <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding TargetRAHour, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" /> |
| 207 | + <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding TargetRAHour, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="RH" TabIndex="1" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
208 | 208 | <TextBlock Grid.Row="2" Grid.Column="2" Text="h" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
209 |
| - <TextBox Grid.Row="2" Grid.Column="3" Text="{Binding TargetRAMinute, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" /> |
| 209 | + <TextBox Grid.Row="2" Grid.Column="3" Text="{Binding TargetRAMinute, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="RM" TabIndex="2" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
210 | 210 | <TextBlock Grid.Row="2" Grid.Column="4" Text="m" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
211 |
| - <TextBox Grid.Row="2" Grid.Column="5" Text="{Binding TargetRASecond, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" /> |
| 211 | + <TextBox Grid.Row="2" Grid.Column="5" Text="{Binding TargetRASecond, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="RS" TabIndex="3" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
212 | 212 | <TextBlock Grid.Row="2" Grid.Column="6" Text="s" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
213 | 213 |
|
214 | 214 | <Button Grid.Row="3" Grid.Column="1" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowDown}" Command="{Binding ArrowCommand}" CommandParameter="RH-" />
|
|
220 | 220 | <Button Grid.Row="4" Grid.Column="5" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowUp}" Command="{Binding ArrowCommand}" CommandParameter="DS+" />
|
221 | 221 |
|
222 | 222 | <TextBlock Grid.Row="5" Grid.Column="0" Text="DEC" Style="{StaticResource TextBlockHeading}" />
|
223 |
| - <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding TargetDECDegree, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}"/> |
| 223 | + <TextBox Grid.Row="5" Grid.Column="1" Text="{Binding TargetDECDegree, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="DD" TabIndex="4" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
224 | 224 | <TextBlock Grid.Row="5" Grid.Column="2" Text="°" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
225 |
| - <TextBox Grid.Row="5" Grid.Column="3" Text="{Binding TargetDECMinute, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}"/> |
| 225 | + <TextBox Grid.Row="5" Grid.Column="3" Text="{Binding TargetDECMinute, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="DM" TabIndex="5" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
226 | 226 | <TextBlock Grid.Row="5" Grid.Column="4" Text="m" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
227 |
| - <TextBox Grid.Row="5" Grid.Column="5" Text="{Binding TargetDECSecond, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" /> |
| 227 | + <TextBox Grid.Row="5" Grid.Column="5" Text="{Binding TargetDECSecond, StringFormat={}{0:00}}" Style="{StaticResource TextBorder}" Tag="DS" TabIndex="6" GotKeyboardFocus="TextBox_GotKeyboardFocus" KeyUp="TextBox_KeyUp" /> |
228 | 228 | <TextBlock Grid.Row="5" Grid.Column="6" Text="s" Margin="2,0,8,0" Style="{StaticResource TextBlockLabel}" />
|
229 | 229 |
|
230 | 230 | <Button Grid.Row="6" Grid.Column="1" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowDown}" Command="{Binding ArrowCommand}" CommandParameter="DD-" />
|
|
365 | 365 | <ColumnDefinition Width="Auto"/>
|
366 | 366 | <ColumnDefinition Width="3*"/>
|
367 | 367 | <ColumnDefinition Width="Auto"/>
|
368 |
| - <ColumnDefinition Width="*"/> |
369 | 368 | </Grid.ColumnDefinitions>
|
370 | 369 | <TextBlock Grid.Column="3" Text="{Binding DriftAlignStatus}" Style="{StaticResource TextBlockLabelSmall}"/>
|
371 | 370 | <Border Grid.Row="1" Grid.Column="3" Padding="0,1,0,0">
|
|
504 | 503 | </Grid.ColumnDefinitions>
|
505 | 504 | <TextBlock Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Text="Calibration" Margin="10,12,0,0" Style="{StaticResource TextBlockLabel}" />
|
506 | 505 |
|
507 |
| - <TextBlock Grid.Column="0" Grid.Row="1" Text="Speed" Margin="10,12,0,0" Style="{StaticResource TextBlockLabelSmall}" /> |
| 506 | + <TextBlock Grid.Column="0" Grid.Row="1" Text="Speed" Margin="0,0" Style="{StaticResource TextBlockLabelSmall}" /> |
508 | 507 | <Controls:NumericUpDown Grid.Column="1" Grid.Row="1" Value="{Binding SpeedCalibrationFactor}" Margin="10,0,0,0"
|
509 | 508 | NumericInputMode="Decimal" StringFormat="0.0000" Maximum="3" Minimum="0.25" Interval="0.0001" Style="{StaticResource NumericBorder}"/>
|
510 | 509 |
|
|
531 | 530 | </Grid>
|
532 | 531 |
|
533 | 532 |
|
534 |
| - <TextBlock Grid.Row="4" Grid.Column="0" Text="Telescope" Style="{StaticResource TextBlockHeading}" Margin="0,10,0,0" /> |
535 |
| - <Grid Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="4" > |
| 533 | + <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="4" > |
536 | 534 | <Grid.ColumnDefinitions>
|
537 | 535 | <ColumnDefinition Width="*" />
|
538 | 536 | <ColumnDefinition Width="*" />
|
| 537 | + <ColumnDefinition Width="*" /> |
539 | 538 | </Grid.ColumnDefinitions>
|
540 |
| - <Button Grid.Column="0" Margin="10,12,0,0" Style="{StaticResource AccentedSquareButtonStyle}" Command="{Binding ConnectScopeCommand}" Content="{Binding ConnectCommandString}"/> |
| 539 | + <TextBlock Grid.Row="0" Grid.Column="1" Text="Mount" Style="{StaticResource TextBlockHeading}" Margin="0,10,0,0" HorizontalAlignment="Right"/> |
| 540 | + <Button Grid.Column="2" Margin="10,12,0,0" Style="{StaticResource AccentedSquareButtonStyle}" Command="{Binding ConnectScopeCommand}" Content="{Binding ConnectCommandString}"/> |
541 | 541 | </Grid>
|
542 |
| - <TextBlock Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="4" Text="{Binding ScopeName}" Style="{StaticResource TextBlockLabel}" Margin="0,2,0,0" /> |
| 542 | + <TextBlock Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding ScopeName}" Style="{StaticResource TextBlockLabel}" Margin="0,2,0,0" HorizontalAlignment="Right" /> |
| 543 | + <TextBlock Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding ScopeHardware}" Style="{StaticResource TextBlockLabelSmall}" Margin="0,2,0,0" HorizontalAlignment="Right" /> |
543 | 544 |
|
544 | 545 |
|
545 | 546 | <!--<Button Grid.Row="5" Grid.Column="1" Style="{StaticResource ArrowStyle}" Content="{StaticResource IconArrowUp}" Command="{Binding ArrowCommand}" CommandParameter="HH+" />
|
|
0 commit comments