mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
43 lines
2.0 KiB
XML
43 lines
2.0 KiB
XML
<UserControl
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Controls.HotkeySettingsControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="using:Microsoft.PowerToys.Settings.UI.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
AutomationProperties.Name="{x:Bind Header, Mode=OneTime}"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300"
|
|
d:DesignWidth="400">
|
|
<StackPanel Orientation="Vertical">
|
|
<ToolTipService.ToolTip>
|
|
<ToolTip>
|
|
<TextBlock x:Name="ShortcutWarningLabelText">
|
|
<Run x:Uid="ShortcutWarningLabel"/>
|
|
<LineBreak/>
|
|
<Run Text="{x:Bind Keys, Mode=OneTime}" FontWeight="SemiBold"/>
|
|
</TextBlock>
|
|
</ToolTip>
|
|
</ToolTipService.ToolTip>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock x:Name="TitleText"
|
|
Text="{x:Bind Header, Mode=OneTime}"
|
|
Foreground="{Binding Path=IsEnabled, ElementName=HotkeyTextBox, Converter={StaticResource ModuleEnabledToForegroundConverter}}"
|
|
/>
|
|
|
|
<TextBlock AutomationProperties.LabeledBy="{Binding ElementName=ShortcutWarningLabelText}"
|
|
x:Name="TitleGlyph" Text=""
|
|
FontFamily="Segoe MDL2 Assets"
|
|
Margin="4,4,0,0"
|
|
Foreground="{Binding Path=IsEnabled, ElementName=HotkeyTextBox, Converter={StaticResource ModuleEnabledToForegroundConverter}}"
|
|
/>
|
|
|
|
</StackPanel>
|
|
<TextBox x:Uid="SettingsPage_SetShortcut"
|
|
x:Name="HotkeyTextBox"
|
|
Margin="0,5,0,0"
|
|
IsReadOnly="True"
|
|
/>
|
|
</StackPanel>
|
|
</UserControl> |