2022-08-26 18:01:50 +02:00
|
|
|
<UserControl
|
|
|
|
|
x:Class="Microsoft.PowerToys.Settings.UI.Controls.PowerAccentShortcutControl"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2022-11-23 19:57:09 +01:00
|
|
|
xmlns:controls="using:Microsoft.PowerToys.Settings.UI.Controls"
|
2022-08-26 18:01:50 +02:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:toolkitcontrols="using:CommunityToolkit.WinUI.UI.Controls"
|
|
|
|
|
d:DesignHeight="300"
|
2022-11-23 19:57:09 +01:00
|
|
|
d:DesignWidth="400"
|
|
|
|
|
mc:Ignorable="d">
|
2022-08-26 18:01:50 +02:00
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ColumnDefinition Width="Auto" />
|
2022-08-26 18:01:50 +02:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
2022-11-23 19:57:09 +01:00
|
|
|
<ItemsControl
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
IsTabStop="False"
|
|
|
|
|
ItemsSource="{x:Bind Keys}">
|
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
|
<StackPanel
|
|
|
|
|
Orientation="Horizontal"
|
|
|
|
|
Spacing="4" />
|
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<controls:KeyVisual
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
AutomationProperties.AccessibilityView="Raw"
|
|
|
|
|
Content="{Binding}"
|
|
|
|
|
IsTabStop="False"
|
|
|
|
|
VisualType="SmallOutline" />
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
<toolkitcontrols:MarkdownTextBlock
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Margin="8,0,0,0"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
Text="{x:Bind Text}" />
|
2022-08-26 18:01:50 +02:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|