|
10 | 10 | RowDefinitions="Auto,Auto,Auto,*" RowSpacing="20"> |
11 | 11 |
|
12 | 12 | <!--The panel title header--> |
13 | | - <TextBlock Text="Tracking Relay Settings" FontSize="32" Grid.Row="0" |
14 | | - Margin="0,5,0,0" FontWeight="SemiBold" /> |
| 13 | + <Grid ColumnDefinitions="*, Auto" Grid.Row="0"> |
| 14 | + <TextBlock Text="{x:Bind Host.RequestLocalizedString('/Titles/Settings'), Mode=OneWay}" |
| 15 | + FontSize="32" Grid.Column="0" Margin="0,5,0,0" FontWeight="SemiBold" IsTabStop="True" /> |
| 16 | + <ToggleSwitch Margin="0,2,-108,0" OnContent="" OffContent="" |
| 17 | + IsOn="{x:Bind RelayReceiverEnabled, Mode=TwoWay}" Grid.Column="1" |
| 18 | + VerticalAlignment="Center" /> |
| 19 | + </Grid> |
15 | 20 |
|
16 | 21 | <!--Server connection controls--> |
17 | | - <Grid ColumnDefinitions="*,*" ColumnSpacing="15" Margin="0,10,0,0" Grid.Row="1"> |
| 22 | + <Grid ColumnDefinitions="*,*" ColumnSpacing="15" Margin="0,10,0,0" Grid.Row="1" |
| 23 | + Opacity="{x:Bind SettingsOpacity, Mode=OneWay}" IsHitTestVisible="{x:Bind RelayReceiverEnabled, Mode=OneWay}"> |
18 | 24 | <TextBox Text="{x:Bind Device.ServerIp, Mode=OneWay}" PlaceholderText="127.0.0.1" Grid.Column="0" |
19 | 25 | Header="Web server address:" LostFocus="AddressTextBox_OnLostFocus" x:Name="ServerAddressBox" /> |
20 | 26 | <NumberBox Value="{x:Bind Device.ServerPort, Mode=OneWay}" Maximum="65535" |
|
24 | 30 |
|
25 | 31 | <!--Status control grid with the refresh button--> |
26 | 32 | <StackPanel Style="{ThemeResource CardMiddleStyle}" Grid.Row="2" |
27 | | - CornerRadius="4" Margin="0,0,0,8"> |
| 33 | + CornerRadius="4" Margin="0,0,0,8" |
| 34 | + Opacity="{x:Bind SettingsOpacity, Mode=OneWay}" |
| 35 | + IsHitTestVisible="{x:Bind RelayReceiverEnabled, Mode=OneWay}"> |
28 | 36 | <Grid Margin="5,0,0,0" HorizontalAlignment="Stretch"> |
29 | 37 | <TextBlock HorizontalAlignment="Left" VerticalAlignment="Center" FontWeight="SemiBold" Margin="0,-3,0,0" |
30 | 38 | Text="{x:Bind Host.RequestLocalizedString('/Titles/RelayStatus'), Mode=OneWay}" |
|
132 | 140 | <!--Devices available via the relay--> |
133 | 141 | <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Bottom" |
134 | 142 | VerticalScrollBarVisibility="Visible" Grid.Row="3" |
135 | | - Margin="-8,0" Padding="8,0"> |
| 143 | + Margin="-8,0" Padding="8,0" |
| 144 | + Opacity="{x:Bind SettingsOpacity, Mode=OneWay}" |
| 145 | + IsHitTestVisible="{x:Bind RelayReceiverEnabled, Mode=OneWay}"> |
136 | 146 | <ScrollViewer.Transitions> |
137 | 147 | <TransitionCollection> |
138 | 148 | <RepositionThemeTransition /> |
|
0 commit comments