|
52 | 52 | TextWrapping="Wrap"/> |
53 | 53 | </StackPanel> |
54 | 54 | <ToggleSwitch Grid.Column="1" x:Name="AutoStartToggle" MinWidth="0" OnContent="" OffContent="" |
| 55 | + IsOn="{Binding AutoStart, Mode=TwoWay}" |
55 | 56 | AutomationProperties.AutomationId="SettingsPageAutoStart" |
56 | 57 | AutomationProperties.Name="Start with Windows"/> |
57 | 58 | </Grid> |
|
74 | 75 | TextWrapping="Wrap"/> |
75 | 76 | </StackPanel> |
76 | 77 | <ComboBox Grid.Column="1" x:Name="AppThemeComboBox" MinWidth="160" |
| 78 | + SelectedValuePath="Tag" |
| 79 | + SelectedValue="{Binding AppTheme, Mode=TwoWay}" |
77 | 80 | AutomationProperties.AutomationId="SettingsPageAppTheme" |
78 | 81 | AutomationProperties.Name="App theme"> |
79 | 82 | <ComboBoxItem x:Uid="SettingsPage_AppTheme_System" Content="System" Tag="System"/> |
|
100 | 103 | TextWrapping="Wrap"/> |
101 | 104 | </StackPanel> |
102 | 105 | <ToggleSwitch Grid.Column="1" x:Name="GlobalHotkeyToggle" MinWidth="0" OnContent="" OffContent="" |
| 106 | + IsOn="{Binding GlobalHotkeyEnabled, Mode=TwoWay}" |
103 | 107 | AutomationProperties.AutomationId="SettingsPageHotkey" |
104 | 108 | AutomationProperties.Name="Global hotkey"/> |
105 | 109 | </Grid> |
|
122 | 126 | TextWrapping="Wrap"/> |
123 | 127 | </StackPanel> |
124 | 128 | <ToggleSwitch Grid.Column="1" x:Name="UseLegacyWebChatToggle" MinWidth="0" OnContent="" OffContent="" |
| 129 | + IsOn="{Binding UseLegacyWebChat, Mode=TwoWay}" |
125 | 130 | AutomationProperties.AutomationId="SettingsPageUseLegacyWebChat" |
126 | 131 | AutomationProperties.Name="Use gateway chat interface"/> |
127 | 132 | </Grid> |
|
149 | 154 | TextWrapping="Wrap"/> |
150 | 155 | </StackPanel> |
151 | 156 | <ToggleSwitch Grid.Column="1" x:Name="ReadResponsesAloudToggle" MinWidth="0" OnContent="" OffContent="" |
| 157 | + IsOn="{Binding ReadResponsesAloud, Mode=TwoWay}" |
152 | 158 | AutomationProperties.AutomationId="SettingsPageReadAloud" |
153 | 159 | AutomationProperties.LabeledBy="{Binding ElementName=ReadResponsesAloudLabel}"/> |
154 | 160 | </Grid> |
|
172 | 178 | TextWrapping="Wrap"/> |
173 | 179 | </StackPanel> |
174 | 180 | <ToggleSwitch Grid.Column="1" x:Name="ShowToolCallsToggle" MinWidth="0" OnContent="" OffContent="" |
| 181 | + IsOn="{Binding ShowChatToolCalls, Mode=TwoWay}" |
175 | 182 | AutomationProperties.AutomationId="SettingsPageShowToolCalls" |
176 | 183 | AutomationProperties.LabeledBy="{Binding ElementName=ShowToolCallsLabel}"/> |
177 | 184 | </Grid> |
|
198 | 205 | TextWrapping="Wrap"/> |
199 | 206 | </StackPanel> |
200 | 207 | <ToggleSwitch Grid.Column="1" x:Name="NotificationsToggle" MinWidth="0" OnContent="" OffContent="" |
| 208 | + IsOn="{Binding ShowNotifications, Mode=TwoWay}" |
201 | 209 | AutomationProperties.AutomationId="SettingsPageNotifications" |
202 | 210 | AutomationProperties.Name="Show notifications"/> |
203 | 211 | </Grid> |
|
221 | 229 | </StackPanel> |
222 | 230 | <ComboBox Grid.Column="1" x:Uid="SettingsPage_NotificationSoundComboBox" |
223 | 231 | x:Name="NotificationSoundComboBox" MinWidth="140" |
| 232 | + SelectedValuePath="Tag" |
| 233 | + SelectedValue="{Binding NotificationSound, Mode=TwoWay}" |
224 | 234 | AutomationProperties.AutomationId="SettingsPageSound"> |
225 | 235 | <ComboBoxItem x:Uid="SettingsPage_ComboBoxItem_48" Content="Default" Tag="Default"/> |
226 | 236 | <ComboBoxItem x:Uid="SettingsPage_ComboBoxItem_49" Content="None" Tag="None"/> |
|
248 | 258 | <RowDefinition Height="Auto"/> |
249 | 259 | </Grid.RowDefinitions> |
250 | 260 | <CheckBox Grid.Row="0" Grid.Column="0" x:Uid="NotifyHealthCb" x:Name="NotifyHealthCb" |
251 | | - Content="Health alerts" |
| 261 | + Content="Health alerts" IsChecked="{Binding NotifyHealth, Mode=TwoWay}" |
252 | 262 | AutomationProperties.AutomationId="SettingsPageNotifyHealth"/> |
253 | 263 | <CheckBox Grid.Row="0" Grid.Column="1" x:Uid="NotifyUrgentCb" x:Name="NotifyUrgentCb" |
254 | | - Content="Urgent messages" |
| 264 | + Content="Urgent messages" IsChecked="{Binding NotifyUrgent, Mode=TwoWay}" |
255 | 265 | AutomationProperties.AutomationId="SettingsPageNotifyUrgent"/> |
256 | 266 | <CheckBox Grid.Row="1" Grid.Column="0" x:Uid="NotifyReminderCb" x:Name="NotifyReminderCb" |
257 | | - Content="Reminders" |
| 267 | + Content="Reminders" IsChecked="{Binding NotifyReminder, Mode=TwoWay}" |
258 | 268 | AutomationProperties.AutomationId="SettingsPageNotifyReminder"/> |
259 | 269 | <CheckBox Grid.Row="1" Grid.Column="1" x:Uid="NotifyEmailCb" x:Name="NotifyEmailCb" |
260 | | - Content="Email summaries" |
| 270 | + Content="Email summaries" IsChecked="{Binding NotifyEmail, Mode=TwoWay}" |
261 | 271 | AutomationProperties.AutomationId="SettingsPageNotifyEmail"/> |
262 | 272 | <CheckBox Grid.Row="2" Grid.Column="0" x:Uid="NotifyCalendarCb" x:Name="NotifyCalendarCb" |
263 | | - Content="Calendar events" |
| 273 | + Content="Calendar events" IsChecked="{Binding NotifyCalendar, Mode=TwoWay}" |
264 | 274 | AutomationProperties.AutomationId="SettingsPageNotifyCalendar"/> |
265 | 275 | <CheckBox Grid.Row="2" Grid.Column="1" x:Uid="NotifyBuildCb" x:Name="NotifyBuildCb" |
266 | | - Content="Build notifications" |
| 276 | + Content="Build notifications" IsChecked="{Binding NotifyBuild, Mode=TwoWay}" |
267 | 277 | AutomationProperties.AutomationId="SettingsPageNotifyBuild"/> |
268 | 278 | <CheckBox Grid.Row="3" Grid.Column="0" x:Uid="NotifyStockCb" x:Name="NotifyStockCb" |
269 | | - Content="Stock alerts" |
| 279 | + Content="Stock alerts" IsChecked="{Binding NotifyStock, Mode=TwoWay}" |
270 | 280 | AutomationProperties.AutomationId="SettingsPageNotifyStock"/> |
271 | 281 | <CheckBox Grid.Row="3" Grid.Column="1" x:Uid="NotifyInfoCb" x:Name="NotifyInfoCb" |
272 | | - Content="Info messages" |
| 282 | + Content="Info messages" IsChecked="{Binding NotifyInfo, Mode=TwoWay}" |
273 | 283 | AutomationProperties.AutomationId="SettingsPageNotifyInfo"/> |
274 | 284 | </Grid> |
275 | 285 | <Button x:Uid="TestNotificationButton" x:Name="TestNotificationButton" |
|
304 | 314 | TextWrapping="Wrap"/> |
305 | 315 | </StackPanel> |
306 | 316 | <ToggleSwitch Grid.Column="1" x:Name="ScreenRecordingToggle" MinWidth="0" OnContent="" OffContent="" |
| 317 | + IsOn="{Binding ScreenRecordingConsentGiven, Mode=TwoWay}" |
307 | 318 | AutomationProperties.AutomationId="SettingsPageScreenRecording" |
308 | 319 | AutomationProperties.Name="Allow screen recording"/> |
309 | 320 | </Grid> |
|
326 | 337 | TextWrapping="Wrap"/> |
327 | 338 | </StackPanel> |
328 | 339 | <ToggleSwitch Grid.Column="1" x:Name="CameraRecordingToggle" MinWidth="0" OnContent="" OffContent="" |
| 340 | + IsOn="{Binding CameraRecordingConsentGiven, Mode=TwoWay}" |
329 | 341 | AutomationProperties.AutomationId="SettingsPageCameraRecording" |
330 | 342 | AutomationProperties.Name="Allow camera recording"/> |
331 | 343 | </Grid> |
|
453 | 465 | MinWidth="0" |
454 | 466 | OnContent="" |
455 | 467 | OffContent="" |
| 468 | + IsOn="{Binding ShowDiagnostics, Mode=TwoWay}" |
456 | 469 | AutomationProperties.AutomationId="SettingsPageShowDiagnostics" |
457 | 470 | AutomationProperties.Name="Enable Diagnostics"/> |
458 | 471 | </Grid> |
|
0 commit comments