2021-03-30 00:09:38 +02:00
|
|
|
<!--
|
|
|
|
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
|
|
the MIT License. See LICENSE in the project root for license information.
|
|
|
|
-->
|
|
|
|
<Page x:Class="Microsoft.Terminal.Settings.Editor.Interaction"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="using:Microsoft.Terminal.Settings.Editor"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
mc:Ignorable="d">
|
2020-12-11 22:34:21 +01:00
|
|
|
|
|
|
|
<Page.Resources>
|
|
|
|
<ResourceDictionary>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2021-03-30 00:09:38 +02:00
|
|
|
<ResourceDictionary Source="CommonResources.xaml" />
|
2020-12-11 22:34:21 +01:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
2021-02-08 19:04:43 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<DataTemplate x:Key="EnumRadioButtonTemplate"
|
|
|
|
x:DataType="local:EnumEntry">
|
|
|
|
<RadioButton Content="{x:Bind EnumName, Mode=OneWay}" />
|
2021-01-15 00:57:59 +01:00
|
|
|
</DataTemplate>
|
2020-12-11 22:34:21 +01:00
|
|
|
</ResourceDictionary>
|
|
|
|
</Page.Resources>
|
2021-02-08 19:04:43 +01:00
|
|
|
|
2020-12-11 22:34:21 +01:00
|
|
|
<ScrollViewer>
|
|
|
|
<StackPanel Style="{StaticResource SettingsStackStyle}">
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Copy On Select -->
|
2021-02-08 19:04:43 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_CopyOnSelect"
|
2021-03-30 00:09:38 +02:00
|
|
|
Margin="0">
|
|
|
|
<ToggleSwitch IsOn="{x:Bind State.Globals.CopyOnSelect, Mode=TwoWay}" />
|
|
|
|
</local:SettingContainer>
|
2020-12-11 22:34:21 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Copy Format -->
|
2021-02-08 19:04:43 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_CopyFormat">
|
2021-03-30 00:09:38 +02:00
|
|
|
<muxc:RadioButtons ItemTemplate="{StaticResource EnumRadioButtonTemplate}"
|
|
|
|
ItemsSource="{x:Bind CopyFormatList, Mode=OneWay}"
|
|
|
|
SelectedItem="{x:Bind CurrentCopyFormat, Mode=TwoWay}" />
|
2021-02-08 19:04:43 +01:00
|
|
|
</local:SettingContainer>
|
2021-01-15 00:57:59 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Word Delimiters -->
|
2021-02-08 19:04:43 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_WordDelimiters">
|
2021-03-30 00:09:38 +02:00
|
|
|
<TextBox Style="{StaticResource TextBoxSettingStyle}"
|
|
|
|
Text="{x:Bind State.Globals.WordDelimiters, Mode=TwoWay}" />
|
2021-02-08 19:04:43 +01:00
|
|
|
</local:SettingContainer>
|
2020-12-11 22:34:21 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Snap On Resize -->
|
2021-02-08 19:04:43 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_SnapToGridOnResize">
|
2021-03-30 00:09:38 +02:00
|
|
|
<ToggleSwitch IsOn="{x:Bind State.Globals.SnapToGridOnResize, Mode=TwoWay}" />
|
2021-02-08 19:04:43 +01:00
|
|
|
</local:SettingContainer>
|
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Tab Switcher Mode -->
|
2021-02-08 19:04:43 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_TabSwitcherMode">
|
2021-03-30 00:09:38 +02:00
|
|
|
<muxc:RadioButtons ItemTemplate="{StaticResource EnumRadioButtonTemplate}"
|
2021-01-15 00:57:59 +01:00
|
|
|
ItemsSource="{x:Bind TabSwitcherModeList}"
|
2021-03-30 00:09:38 +02:00
|
|
|
SelectedItem="{x:Bind CurrentTabSwitcherMode, Mode=TwoWay}" />
|
2021-02-08 19:04:43 +01:00
|
|
|
</local:SettingContainer>
|
2021-02-09 23:18:20 +01:00
|
|
|
|
2021-03-30 00:09:38 +02:00
|
|
|
<!-- Focus Follow Mouse Mode -->
|
2021-02-09 23:18:20 +01:00
|
|
|
<local:SettingContainer x:Uid="Globals_FocusFollowMouse">
|
2021-03-30 00:09:38 +02:00
|
|
|
<ToggleSwitch IsOn="{x:Bind State.Globals.FocusFollowMouse, Mode=TwoWay}" />
|
2021-02-09 23:18:20 +01:00
|
|
|
</local:SettingContainer>
|
2020-12-11 22:34:21 +01:00
|
|
|
</StackPanel>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Page>
|