-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathSettingsWindow.axaml
More file actions
1461 lines (1444 loc) · 88.2 KB
/
Copy pathSettingsWindow.axaml
File metadata and controls
1461 lines (1444 loc) · 88.2 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:OscarWatch.ViewModels"
xmlns:loc="using:OscarWatch.Localization"
xmlns:theme="using:OscarWatch.Theme"
xmlns:models="using:OscarWatch.Core.Models"
xmlns:services="using:OscarWatch.Core.Services"
x:Class="OscarWatch.Views.SettingsWindow"
x:DataType="vm:SettingsViewModel"
Title="{loc:Localize Key=Settings.Title}"
Width="800" Height="520"
MinWidth="760" MinHeight="360"
WindowStartupLocation="CenterOwner">
<DockPanel Margin="0">
<Border DockPanel.Dock="Bottom"
BorderBrush="{DynamicResource SystemControlForegroundBaseLowBrush}"
BorderThickness="0,1,0,0"
Padding="12,10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Spacing="8">
<Button Content="{loc:Localize Key=Common.Cancel}"
Classes="dialog-footer"
Click="OnCancelClick" />
<Button Content="{loc:Localize Key=Common.Save}"
Classes="dialog-footer accent"
Click="OnSaveClick"
IsDefault="True" />
</StackPanel>
</Border>
<TabControl x:Name="SettingsTabControl"
Margin="12,12,12,8"
SelectionChanged="OnSettingsTabSelectionChanged">
<TabControl.Styles>
<Style Selector="TabItem">
<Setter Property="FontSize" Value="14" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Padding" Value="10,7" />
</Style>
<Style Selector="TabItem TextBlock">
<Setter Property="FontSize" Value="14" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="TabItem ScrollViewer StackPanel > TextBlock">
<Setter Property="FontSize" Value="12" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style Selector="TabItem ScrollViewer > TextBlock">
<Setter Property="FontSize" Value="11" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<Style Selector="TabItem ScrollViewer > StackPanel">
<Setter Property="Margin" Value="0,0,0,56" />
</Style>
</TabControl.Styles>
<TabItem Header="{loc:Localize Key=Settings.Tab.Station}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{loc:Localize Key=Settings.Station.DisplayName}" />
<TextBox Text="{Binding DisplayName, Mode=TwoWay}" />
<Grid ColumnDefinitions="*,*" ColumnSpacing="8">
<StackPanel Grid.Column="0" Spacing="4">
<TextBlock Text="{loc:Localize Key=Settings.Station.Latitude}" />
<NumericUpDown Value="{Binding LatitudeDeg, Mode=TwoWay}"
Minimum="-90" Maximum="90" FormatString="F4" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="4">
<TextBlock Text="{loc:Localize Key=Settings.Station.Longitude}" />
<NumericUpDown Value="{Binding LongitudeDeg, Mode=TwoWay}"
Minimum="-180" Maximum="180" FormatString="F4" />
</StackPanel>
</Grid>
<TextBlock Text="{loc:Localize Key=Settings.Station.GridSquare}" />
<TextBox Text="{Binding GridSquare, Mode=TwoWay}" MaxLength="40" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Station.GridSquareNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Station.Altitude}" />
<NumericUpDown Value="{Binding AltitudeMeters, Mode=TwoWay}"
Minimum="0" Maximum="9000"
Increment="0.1" FormatString="F1" />
<TextBlock Text="{loc:Localize Key=Settings.Station.HorizonMask}"
FontWeight="SemiBold" />
<TextBlock Text="{loc:Localize Key=Settings.Station.HorizonMaskSummary}"
FontSize="11"
TextWrapping="Wrap"
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}" />
<Button Content="{loc:Localize Key=Settings.Station.HorizonMaskEdit}"
HorizontalAlignment="Left"
Click="OnEditHorizonMaskClick" />
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Tle}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{loc:Localize Key=Settings.Tle.Source}" />
<ComboBox ItemsSource="{Binding TleSourceOptions}"
SelectedItem="{Binding TleSourceOption, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:TleSourceOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Tle.SourceNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Tle.DownloadUrl}"
IsVisible="{Binding ShowTleCustomUrl}" />
<TextBox Text="{Binding TleCustomUrl, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Watermark="{Binding TleCustomUrlWatermark}"
IsVisible="{Binding ShowTleCustomUrl}" />
<TextBlock Text="{loc:Localize Key=Settings.Tle.LocalFile}"
IsVisible="{Binding ShowTleLocalFile}" />
<Grid ColumnDefinitions="*,Auto"
ColumnSpacing="8"
IsVisible="{Binding ShowTleLocalFile}">
<TextBox Grid.Column="0"
Text="{Binding TleLocalFilePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Watermark="{loc:Localize Key=Settings.Tle.LocalFileWatermark}" />
<Button Grid.Column="1"
Content="{loc:Localize Key=Common.Browse}"
Click="OnBrowseTleFileClick" />
</Grid>
<TextBlock Text="{loc:Localize Key=Settings.Tle.Updates}" Margin="0,8,0,0" />
<ComboBox ItemsSource="{Binding TleAutoUpdateOptions}"
SelectedItem="{Binding TleAutoUpdateOption, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:TleAutoUpdateOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Tle.UpdatesNote}" />
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Tracking}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{loc:Localize Key=Settings.Tracking.MinElevation}" />
<NumericUpDown Value="{Binding MinimumElevationDeg, Mode=TwoWay}"
Minimum="0" Maximum="90" FormatString="F1" />
<TextBlock Text="{loc:Localize Key=Settings.Tracking.PassWindow}" />
<NumericUpDown Value="{Binding PassPredictionHours, Mode=TwoWay}"
Minimum="6" Maximum="168" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Tracking.PassWindowNote}" />
<CheckBox Content="{loc:Localize Key=Settings.Tracking.TransponderCheck}"
IsChecked="{Binding TransponderDatabaseCheckOnStartup, Mode=TwoWay}"
Margin="0,8,0,0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Tracking.TransponderCheckNote}" />
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Appearance}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{loc:Localize Key=Settings.Appearance.Section.LocaleTime}"
FontWeight="SemiBold" FontSize="13" />
<TextBlock Text="{loc:Localize Key=Settings.Language}" />
<ComboBox ItemsSource="{Binding LanguageOptions}"
SelectedItem="{Binding SelectedLanguage, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:LanguageOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowLanguageRestartNote}"
Text="{loc:Localize Key=Settings.Language.RestartNote}" />
<TextBlock Text="{loc:Localize Key=Settings.ClockFormat}" />
<ComboBox ItemsSource="{Binding ClockFormatLabels}"
SelectedIndex="{Binding ClockFormatIndex, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
<TextBlock Text="{loc:Localize Key=Settings.TimeDisplay}" />
<ComboBox ItemsSource="{Binding TimeDisplayLabels}"
SelectedIndex="{Binding TimeDisplayIndex, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
<TextBlock Foreground="{DynamicResource ThemeSecondaryForegroundBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.TimeDisplay.Note}" />
<TextBlock Text="{loc:Localize Key=Settings.Appearance.Section.Map}"
Margin="0,12,0,0" FontWeight="SemiBold" FontSize="13" />
<CheckBox Content="{loc:Localize Key=Settings.FootprintArrows}"
IsChecked="{Binding ShowFootprintMotionArrows, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.FootprintArrows.Note}" />
<CheckBox Content="{loc:Localize Key=Settings.GreylineOverlay}"
IsChecked="{Binding ShowGreylineOverlay, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.GreylineOverlay.Note}" />
<CheckBox Content="{loc:Localize Key=Settings.MultiTrackOverlay}"
IsChecked="{Binding ShowMultiTrackOverlay, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.MultiTrackOverlay.Note}" />
<TextBlock Text="{loc:Localize Key=Settings.MapCentre}" />
<ComboBox ItemsSource="{Binding MapCentreModeOptions}"
SelectedItem="{Binding SelectedMapCentreModeOption, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:MapCentreModeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.MapCentre.Note}" />
<TextBlock Text="{loc:Localize Key=Settings.MapCentre.CustomLongitude}"
IsVisible="{Binding IsCustomMapCentreLongitudeEnabled}" />
<NumericUpDown Value="{Binding MapCentreLongitudeDeg, Mode=TwoWay}"
Minimum="-180" Maximum="180"
Increment="1" FormatString="F2"
IsEnabled="{Binding IsCustomMapCentreLongitudeEnabled}"
IsVisible="{Binding IsCustomMapCentreLongitudeEnabled}" />
<TextBlock Text="{loc:Localize Key=Settings.Appearance.Section.Theme}"
Margin="0,12,0,0" FontWeight="SemiBold" FontSize="13" />
<ComboBox ItemsSource="{Binding ThemeOptions}"
SelectedItem="{Binding SelectedThemeOption, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:ThemeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Theme.Note}" />
<TextBlock Text="{loc:Localize Key=Settings.Appearance.Section.Updates}"
Margin="0,12,0,0" FontWeight="SemiBold" FontSize="13" />
<CheckBox Content="{loc:Localize Key=Settings.AppUpdate.Enabled}"
IsChecked="{Binding AppUpdateCheckEnabled, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.AppUpdate.EnabledNote}" />
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Voice}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<CheckBox Content="{loc:Localize Key=Settings.Voice.Enable}"
IsChecked="{Binding VoiceAnnouncementsEnabled, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Voice.EnableNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Voice.AnnounceElevation}" Margin="0,8,0,0" />
<NumericUpDown Value="{Binding AnnounceElevationDeg, Mode=TwoWay}"
Minimum="-10" Maximum="30"
Increment="0.5" FormatString="F1" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Voice.AnnounceElevationNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Voice.VoiceLabel}" Margin="0,8,0,0" />
<ComboBox ItemsSource="{Binding SpeechVoiceOptions}"
SelectedItem="{Binding SelectedSpeechVoice, Mode=TwoWay}"
IsEnabled="{Binding SpeechAvailable}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="services:SpeechVoiceOption">
<TextBlock Text="{Binding DisplayName}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding SpeechUnavailable}"
Text="{loc:Localize Key=Settings.Voice.SpeechUnavailable}" />
<TextBlock Text="{loc:Localize Key=Settings.Voice.Preview}" Margin="0,8,0,0" />
<TextBlock Text="{Binding VoicePreviewText}"
TextWrapping="Wrap"
FontStyle="Italic" />
<Button Content="{loc:Localize Key=Settings.Voice.TestAnnouncement}"
Command="{Binding TestVoiceAnnouncementCommand}"
IsEnabled="{Binding SpeechAvailable}"
HorizontalAlignment="Left"
MinWidth="140" />
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Radio}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{Binding ComPortConflictText}"
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowComPortConflict}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowLinuxSerialPortHint}"
Text="{loc:Localize Key=Settings.Radio.SerialPortLinuxHint}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.Enable}"
IsChecked="{Binding RigEnabled, Mode=TwoWay}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.DualEnable}"
IsChecked="{Binding DualRadioEnabled, Mode=TwoWay}"
Margin="0,4,0,0" />
<StackPanel Spacing="10" IsVisible="{Binding ShowRigSingleConfig}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.Driver}" />
<ComboBox ItemsSource="{Binding RigTypeChoices}"
SelectedItem="{Binding SelectedRigTypeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigTypeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Spacing="10" IsVisible="{Binding ShowRigSerialFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.SerialPort}" />
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="8">
<ComboBox Grid.Column="0"
ItemsSource="{Binding AvailableComPorts}"
Text="{Binding SelectedRigComPort, Mode=TwoWay}"
PlaceholderText="{loc:Localize Key=Settings.Radio.SelectComPort}"
HorizontalAlignment="Stretch"
IsEditable="True">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={x:Static theme:SerialPortDisplayConverter.Instance}}"
ToolTip.Tip="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Grid.Column="1"
Content="{loc:Localize Key=Common.Refresh}"
Command="{Binding RefreshComPortsCommand}"
MinWidth="72" />
</Grid>
<TextBlock Text="{loc:Localize Key=Settings.Radio.BaudRate}" />
<ComboBox ItemsSource="{Binding RigBaudRateOptions}"
SelectedItem="{Binding RigBaudRate, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
<StackPanel Spacing="4" IsVisible="{Binding ShowRigCivAddress}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.CivAddress}" />
<TextBox Text="{Binding RigCivAddress, Mode=TwoWay}"
Watermark="60" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.CivHint}" />
</StackPanel>
</StackPanel>
<StackPanel Spacing="10" IsVisible="{Binding ShowRigFlexFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.FlexDiscovered}" />
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="8">
<ComboBox Grid.Column="0"
ItemsSource="{Binding DiscoveredFlexRadios}"
SelectedItem="{Binding SelectedFlexDiscoveredRadio, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:FlexDiscoveredRadioOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Grid.Column="1"
Content="{loc:Localize Key=Common.Refresh}"
Command="{Binding RefreshFlexDiscoveryCommand}"
MinWidth="72" />
</Grid>
<TextBlock Text="{loc:Localize Key=Settings.Radio.FlexHost}" />
<TextBox Text="{Binding RigNetworkHost, Mode=TwoWay}"
Watermark="192.168.1.10" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.FlexPort}" />
<NumericUpDown Value="{Binding RigNetworkPort, Mode=TwoWay}"
Minimum="1" Maximum="65535"
Increment="1" FormatString="F0" />
<Button Content="{loc:Localize Key=Settings.Radio.FlexTestConnection}"
Command="{Binding TestFlexConnectionCommand}" />
<TextBlock Text="{Binding RigFlexTestStatus}"
FontSize="11"
TextWrapping="Wrap" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFlexHint}"
Text="{loc:Localize Key=Settings.Radio.FlexHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFlexDuplexWarning}"
Text="{loc:Localize Key=Settings.Radio.FlexDuplexWarning}" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.FlexAntennaPorts}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.FlexAntennaPortsHint}" />
<Grid ColumnDefinitions="*,*" RowDefinitions="Auto,Auto,Auto,Auto" ColumnSpacing="12" RowSpacing="8">
<TextBlock Grid.Row="0" Grid.Column="0"
Text="{loc:Localize Key=Settings.Radio.FlexVhfRxAnt}" />
<ComboBox Grid.Row="1" Grid.Column="0"
ItemsSource="{Binding FlexAntennaPortChoices}"
SelectedItem="{Binding SelectedFlexVhfRxAnt, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:FlexAntennaPortOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Grid.Row="0" Grid.Column="1"
Text="{loc:Localize Key=Settings.Radio.FlexUhfRxAnt}" />
<ComboBox Grid.Row="1" Grid.Column="1"
ItemsSource="{Binding FlexAntennaPortChoices}"
SelectedItem="{Binding SelectedFlexUhfRxAnt, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:FlexAntennaPortOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Grid.Row="2" Grid.Column="0"
Text="{loc:Localize Key=Settings.Radio.FlexVhfTxAnt}" />
<ComboBox Grid.Row="3" Grid.Column="0"
ItemsSource="{Binding FlexAntennaPortChoices}"
SelectedItem="{Binding SelectedFlexVhfTxAnt, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:FlexAntennaPortOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Grid.Row="2" Grid.Column="1"
Text="{loc:Localize Key=Settings.Radio.FlexUhfTxAnt}" />
<ComboBox Grid.Row="3" Grid.Column="1"
ItemsSource="{Binding FlexAntennaPortChoices}"
SelectedItem="{Binding SelectedFlexUhfTxAnt, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:FlexAntennaPortOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</Grid>
</StackPanel>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFt847CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ft847Hint}" />
<StackPanel Spacing="6" IsVisible="{Binding ShowRigTs2000CatHint}">
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.Ts2000Hint}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.Ts2000HardwareRts}"
IsChecked="{Binding RigKenwoodHardwareRtsEnabled, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.Ts2000HardwareRtsNote}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.Ts2000Trace}"
IsChecked="{Binding RigKenwoodTraceEnabled, Mode=TwoWay}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.Ts2000TraceNote}" />
</StackPanel>
<StackPanel Spacing="10" IsVisible="{Binding ShowRigSerialFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.Region}" />
<ComboBox ItemsSource="{Binding RigRegionChoices}"
SelectedItem="{Binding SelectedRigRegionChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigRegionOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.RegionNote}" />
</StackPanel>
<TextBlock Text="{loc:Localize Key=Settings.Radio.CatDelay}" />
<NumericUpDown Value="{Binding RigCatDelayMs, Mode=TwoWay}"
Minimum="0" Maximum="500"
Increment="10" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.CatDelayNote}" />
</StackPanel>
<StackPanel Spacing="12" IsVisible="{Binding ShowRigDualConfig}">
<TextBlock Text="{Binding DualRadioIncompleteText}"
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDualRadioIncomplete}" />
<Border BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
BorderThickness="1"
CornerRadius="4"
Padding="10">
<StackPanel Spacing="8">
<TextBlock Text="{loc:Localize Key=Settings.Radio.Downlink}" FontWeight="SemiBold" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.Label}" />
<ComboBox ItemsSource="{Binding RigDualDownlinkTypeChoices}"
SelectedItem="{Binding SelectedDownlinkRigTypeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigTypeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Spacing="8" IsVisible="{Binding ShowDownlinkSerialFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.SerialPort}" />
<ComboBox ItemsSource="{Binding AvailableComPorts}"
Text="{Binding SelectedDownlinkComPort, Mode=TwoWay}"
PlaceholderText="{loc:Localize Key=Settings.Radio.SelectComPort}"
HorizontalAlignment="Stretch"
IsEditable="True">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={x:Static theme:SerialPortDisplayConverter.Instance}}"
ToolTip.Tip="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Text="{loc:Localize Key=Settings.Radio.BaudRate}" />
<ComboBox ItemsSource="{Binding RigBaudRateOptions}"
SelectedItem="{Binding DownlinkBaudRate, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
<StackPanel Spacing="4" IsVisible="{Binding ShowDownlinkCivAddress}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.CivAddress}" />
<TextBox Text="{Binding DownlinkCivAddress, Mode=TwoWay}"
Watermark="A4 / 94 / AC / 48 / 4C / 58" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc705CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic705CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc7300CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic7300CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc905CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic905CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc706CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc706MkiiCivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiCivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowDownlinkIc706MkiiGCivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiGCivHint}" />
</StackPanel>
<TextBlock Text="{loc:Localize Key=Settings.Radio.Region}" />
<ComboBox ItemsSource="{Binding RigRegionChoices}"
SelectedItem="{Binding SelectedDownlinkRegionChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigRegionOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<StackPanel Spacing="8" IsVisible="{Binding ShowDownlinkSdrFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.SdrHost}" />
<TextBox Text="{Binding DownlinkNetworkHost, Mode=TwoWay}"
Watermark="127.0.0.1" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.SdrPort}" />
<NumericUpDown Value="{Binding DownlinkNetworkPort, Mode=TwoWay}"
Minimum="1" Maximum="65535"
Increment="1" FormatString="F0" />
<StackPanel Orientation="Horizontal" Spacing="8">
<Button Content="{loc:Localize Key=Settings.Radio.SdrPresetSdrPlus}"
Command="{Binding ApplyDownlinkSdrPlusPresetCommand}" />
<Button Content="{loc:Localize Key=Settings.Radio.SdrPresetSdrConnect}"
Command="{Binding ApplyDownlinkSdrConnectPresetCommand}" />
</StackPanel>
<Button Content="{loc:Localize Key=Settings.Radio.SdrTestConnection}"
Command="{Binding TestDownlinkSdrConnectionCommand}" />
<TextBlock Text="{Binding DownlinkSdrTestStatus}"
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.SdrHint}" />
</StackPanel>
<TextBlock Text="{loc:Localize Key=Settings.Radio.CatDelay}" />
<NumericUpDown Value="{Binding DownlinkCatDelayMs, Mode=TwoWay}"
Minimum="0" Maximum="500"
Increment="10" FormatString="F0" />
</StackPanel>
</Border>
<Border BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
BorderThickness="1"
CornerRadius="4"
Padding="10">
<StackPanel Spacing="8">
<TextBlock Text="{loc:Localize Key=Settings.Radio.Uplink}" FontWeight="SemiBold" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.Label}" />
<ComboBox ItemsSource="{Binding RigDualUplinkTypeChoices}"
SelectedItem="{Binding SelectedUplinkRigTypeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigTypeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Spacing="8" IsVisible="{Binding ShowUplinkSerialFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.SerialPort}" />
<ComboBox ItemsSource="{Binding AvailableComPorts}"
Text="{Binding SelectedUplinkComPort, Mode=TwoWay}"
PlaceholderText="{loc:Localize Key=Settings.Radio.SelectComPort}"
HorizontalAlignment="Stretch"
IsEditable="True">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={x:Static theme:SerialPortDisplayConverter.Instance}}"
ToolTip.Tip="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Text="{loc:Localize Key=Settings.Radio.BaudRate}" />
<ComboBox ItemsSource="{Binding RigBaudRateOptions}"
SelectedItem="{Binding UplinkBaudRate, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
<StackPanel Spacing="4" IsVisible="{Binding ShowUplinkCivAddress}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.CivAddress}" />
<TextBox Text="{Binding UplinkCivAddress, Mode=TwoWay}"
Watermark="A4 / 94 / AC / 48 / 4C / 58" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc705CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic705CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc7300CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic7300CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc905CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic905CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc706CivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706CivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc706MkiiCivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiCivHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowUplinkIc706MkiiGCivHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiGCivHint}" />
</StackPanel>
</StackPanel>
<TextBlock Text="{loc:Localize Key=Settings.Radio.Region}" />
<ComboBox ItemsSource="{Binding RigRegionChoices}"
SelectedItem="{Binding SelectedUplinkRegionChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RigRegionOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Text="{loc:Localize Key=Settings.Radio.CatDelay}" />
<NumericUpDown Value="{Binding UplinkCatDelayMs, Mode=TwoWay}"
Minimum="0" Maximum="500"
Increment="10" FormatString="F0" />
</StackPanel>
</Border>
<Button Content="{loc:Localize Key=Settings.Radio.RefreshComPorts}"
Command="{Binding RefreshComPortsCommand}"
HorizontalAlignment="Left"
MinWidth="140" />
</StackPanel>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFt817CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ft817Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc705CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic705Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc7300CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic7300Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc905CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic905Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc706CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc706MkiiCatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigIc706MkiiGCatHint}"
Text="{loc:Localize Key=Settings.Radio.Ic706MkiiGHint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFt991CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ft991Hint}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRigFtx1CatHint}"
Text="{loc:Localize Key=Settings.Radio.Ftx1Hint}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.CwSideband}"
IsChecked="{Binding RigCwKeepSidebandDownlink, Mode=TwoWay}"
Margin="0,8,0,0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.CwSidebandNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.DopplerFm}" Margin="0,8,0,0" />
<NumericUpDown Value="{Binding RigDopplerThresholdFmHz, Mode=TwoWay}"
Minimum="0" Maximum="2000"
Increment="10" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Margin="0,-6,0,0"
Text="{loc:Localize Key=Settings.Radio.DopplerFmNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.DopplerSsb}" Margin="0,8,0,0" />
<NumericUpDown Value="{Binding RigDopplerThresholdLinearHz, Mode=TwoWay}"
Minimum="0" Maximum="500"
Increment="5" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.DopplerSsbNote}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.DopplerAdaptiveThreshold}"
IsChecked="{Binding RigDopplerAdaptiveThresholdEnabled, Mode=TwoWay}"
Margin="0,8,0,0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.DopplerAdaptiveThresholdNote}" />
<CheckBox Content="{loc:Localize Key=Settings.Radio.DopplerPassLog}"
IsChecked="{Binding RigDopplerPassLogEnabled, Mode=TwoWay}"
Margin="0,8,0,0" />
<StackPanel Orientation="Horizontal" Spacing="8" Margin="0,4,0,0">
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
VerticalAlignment="Center"
Text="{loc:Localize Key=Settings.Radio.DopplerPassLogNote}" />
<Button Content="{loc:Localize Key=Settings.Radio.DopplerPassLogOpenFolder}"
Command="{Binding OpenDopplerPassLogFolderCommand}"
Padding="8,4" />
</StackPanel>
<CheckBox Content="{loc:Localize Key=Settings.Radio.DopplerCatLead}"
IsChecked="{Binding RigDopplerCatLeadEnabled, Mode=TwoWay}"
Margin="0,8,0,0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.DopplerCatLeadNote}" />
<StackPanel Spacing="6"
Margin="20,4,0,0"
IsVisible="{Binding RigDopplerCatLeadEnabled}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.DopplerCatLeadMs}" />
<NumericUpDown Value="{Binding RigDopplerCatLeadMs, Mode=TwoWay}"
Minimum="0" Maximum="100"
Increment="5" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.DopplerCatLeadMsNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Radio.DopplerCatLeadGain}"
Margin="0,8,0,0" />
<NumericUpDown Value="{Binding RigDopplerCatLeadGainPercent, Mode=TwoWay}"
Minimum="0" Maximum="100"
Increment="5" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Radio.DopplerCatLeadGainNote}" />
</StackPanel>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem Header="{loc:Localize Key=Settings.Tab.Rotator}">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="4,8,4,0">
<StackPanel Spacing="10" MaxWidth="420">
<TextBlock Text="{Binding ComPortConflictText}"
Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowComPortConflict}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowLinuxSerialPortHint}"
Text="{loc:Localize Key=Settings.Radio.SerialPortLinuxHint}" />
<CheckBox Content="{loc:Localize Key=Settings.Rotator.Enable}"
IsChecked="{Binding RotatorEnabled, Mode=TwoWay}" />
<TextBlock Text="{loc:Localize Key=Settings.Rotator.Type}" />
<ComboBox ItemsSource="{Binding RotatorTypeChoices}"
SelectedItem="{Binding SelectedRotatorTypeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RotatorTypeOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Rotator.TypeNote}" />
<StackPanel Spacing="10" IsVisible="{Binding ShowRotatorTransportFields}">
<TextBlock Text="{loc:Localize Key=Settings.Rotator.Transport}" />
<ComboBox ItemsSource="{Binding RotatorTransportChoices}"
SelectedItem="{Binding SelectedRotatorTransportChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RotatorTransportOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<StackPanel Spacing="10" IsVisible="{Binding ShowRotatorSerialFields}">
<TextBlock Text="{loc:Localize Key=Settings.Radio.SerialPort}" />
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="8">
<ComboBox Grid.Column="0"
ItemsSource="{Binding AvailableComPorts}"
Text="{Binding SelectedComPort, Mode=TwoWay}"
PlaceholderText="{loc:Localize Key=Settings.Radio.SelectComPort}"
HorizontalAlignment="Stretch"
IsEditable="True">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={x:Static theme:SerialPortDisplayConverter.Instance}}"
ToolTip.Tip="{Binding}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<Button Grid.Column="1"
Content="{loc:Localize Key=Common.Refresh}"
Command="{Binding RefreshComPortsCommand}"
MinWidth="72" />
</Grid>
<TextBlock Text="{loc:Localize Key=Settings.Radio.BaudRate}" />
<ComboBox ItemsSource="{Binding RotatorBaudRateOptions}"
SelectedItem="{Binding RotatorBaudRate, Mode=TwoWay}"
HorizontalAlignment="Stretch" />
</StackPanel>
<StackPanel Spacing="10" IsVisible="{Binding ShowRotatorNetworkFields}">
<TextBlock Text="{loc:Localize Key=Settings.Rotator.NetworkHost}" />
<TextBox Text="{Binding RotatorNetworkHost, Mode=TwoWay}"
Watermark="{loc:Localize Key=Settings.Rotator.NetworkHostWatermark}" />
<TextBlock Text="{loc:Localize Key=Settings.Rotator.NetworkPort}" />
<NumericUpDown Value="{Binding RotatorNetworkPort, Mode=TwoWay}"
Minimum="1" Maximum="65535"
Increment="1" FormatString="F0" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRotatorUrcNetworkNote}"
Text="{loc:Localize Key=Settings.Rotator.NetworkNote}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
IsVisible="{Binding ShowRotatorTcpSerialNetworkNote}"
Text="{loc:Localize Key=Settings.Rotator.NetworkNoteTcpSerial}" />
</StackPanel>
<TextBlock Text="{loc:Localize Key=Settings.Rotator.AzimuthRange}" />
<ComboBox ItemsSource="{Binding AzimuthRangeChoices}"
SelectedItem="{Binding SelectedAzimuthRangeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RotatorAzimuthOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<CheckBox Content="{loc:Localize Key=Settings.Rotator.SmartAzimuth}"
IsChecked="{Binding RotatorSmartAzimuth450, Mode=TwoWay}"
IsEnabled="{Binding IsRotatorSmartAzimuth450Enabled}" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Rotator.SmartAzimuthNote}" />
<TextBlock Text="{loc:Localize Key=Settings.Rotator.ElevationRange}" />
<ComboBox ItemsSource="{Binding ElevationRangeChoices}"
SelectedItem="{Binding SelectedElevationRangeChoice, Mode=TwoWay}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="vm:RotatorElevationOption">
<TextBlock Text="{Binding Label}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Rotator.ElevationRangeNote}" />
<TextBlock Text="Tracking" Margin="0,12,0,0" FontWeight="SemiBold" FontSize="13" />
<TextBlock Text="{loc:Localize Key=Settings.Rotator.TrackStart}" Margin="0,8,0,0" />
<NumericUpDown Value="{Binding RotatorTrackStartElevationDeg, Mode=TwoWay}"
Minimum="-90" Maximum="90"
Increment="0.5" FormatString="F1" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="{loc:Localize Key=Settings.Rotator.TrackStartNote}" />
<TextBlock Text="Movement Threshold (°)" Margin="0,8,0,0" />
<NumericUpDown Value="{Binding RotatorMovementThresholdDeg, Mode=TwoWay}"
Minimum="0.1" Maximum="10.0"
Increment="0.1" FormatString="F1"
Focusable="True" />
<TextBlock Foreground="{DynamicResource SystemControlForegroundBaseMediumBrush}"
FontSize="11"
TextWrapping="Wrap"
Text="Minimum angular change before a new position command is sent. Lower values give tighter tracking; higher values reduce gear wear. Default: 1.0°." />
<Grid ColumnDefinitions="*,*" ColumnSpacing="8" Margin="0,8,0,0">
<StackPanel Grid.Column="0" Spacing="4">
<TextBlock Text="{loc:Localize Key=Settings.Rotator.ParkAzimuth}" />
<NumericUpDown Value="{Binding RotatorParkAzimuthDeg, Mode=TwoWay}"
Minimum="0" Maximum="450"
Increment="1" FormatString="F0" />
</StackPanel>
<StackPanel Grid.Column="1" Spacing="4">
<TextBlock Text="{loc:Localize Key=Settings.Rotator.ParkElevation}" />