/
githubmirror
/
PowerToys
Обзор
Документация
Войти
/
githubmirror
/
PowerToys
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/modules/keyboardmanager/KeyboardManagerEditorUI/Controls/IconLabelControl.xaml
48 строк
2 KB
Zach Teutsch
[Keyboard Manager] Updated WinUI3 KBM and toggles (#45649)
04 мар 2026, 23:46
Не верифицирован
04 мар 2026, 23:46
f651d1a
Код
Авторство
О чём код?
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:KeyboardManagerEditorUI.Controls"> <Style BasedOn="{StaticResource DefaultIconLabelControlStyle}" TargetType="local:IconLabelControl" /> <Style x:Key="DefaultIconLabelControlStyle" TargetType="local:IconLabelControl"> <Setter Property="IsTabStop" Value="False" /> <Setter Property="FontSize" Value="14" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="local:IconLabelControl"> <Grid Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" ColumnSpacing="4" CornerRadius="{TemplateBinding CornerRadius}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <FontIcon x:Name="TypeIcon" Grid.Column="0" VerticalAlignment="Center" FontFamily="{ThemeResource SymbolThemeFontFamily}" FontSize="{TemplateBinding FontSize}" Foreground="{ThemeResource AccentTextFillColorPrimaryBrush}" /> <TextBlock x:Name="LabelText" Grid.Column="1" Margin="0,-1,0,0" VerticalAlignment="Center" FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" Text="{TemplateBinding Label}" TextTrimming="CharacterEllipsis" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary>