コード例 #1
0
 private void OnThemeAdded(object sender, TerminalTheme e)
 {
     _applicationView.RunOnDispatcherThread(() =>
     {
         TerminalThemes.Add(e);
     });
 }
コード例 #2
0
 private async void OnTerminalOptionsChanged(object sender, TerminalOptions e)
 {
     await _applicationView.RunOnDispatcherThread(() =>
     {
         BackgroundOpacity = e.BackgroundOpacity;
     });
 }
コード例 #3
0
 private async void OnKeyBindingsChanged(object sender, EventArgs e)
 {
     var keyBindings = _settingsService.GetKeyBindings();
     await _applicationView.RunOnDispatcherThread(async() =>
     {
         await _terminalView.ChangeKeyBindings(FlattenKeyBindings(keyBindings)).ConfigureAwait(false);
     });
 }