Files
community/Ink Canvas/Windows/HotkeyItem.xaml
T
doudou0720 7a363f7f79 feat:支持交叉编译并完成iNKORE.UI.WPF.Modern升级 (#398)
* fix(deps):仅更新SimpleStackPanel

* feat:支持交叉编译并完成iNKORE.UI升级

* chore:fix com

* fix(Build/logic):在非.Net Framework MSBuild下使用预生成的互操作dll而非依据系统判断

Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com>

* feat:添加devcontainer.json

* chore(devcontainer.json):精简Dev Container

---------

Signed-off-by: doudou0720 <98651603+doudou0720@users.noreply.github.com>
2026-03-14 17:19:05 +08:00

66 lines
2.7 KiB
XML

<UserControl x:Class="Ink_Canvas.Windows.HotkeyItem"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:ikw="http://schemas.inkore.net/lib/ui/wpf"
mc:Ignorable="d"
d:DesignHeight="60" d:DesignWidth="600">
<Border Background="White"
BorderBrush="#E0E0E0"
BorderThickness="1"
CornerRadius="5"
Margin="0,2">
<Grid Margin="15,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<!-- 左侧信息 -->
<ikw:SimpleStackPanel Grid.Column="0" VerticalAlignment="Center">
<TextBlock x:Name="TitleTextBlock"
Text="快捷键标题"
FontSize="14"
FontWeight="SemiBold"
Foreground="#333333"/>
<TextBlock x:Name="DescriptionTextBlock"
Text="快捷键描述"
FontSize="12"
Foreground="#666666"
Margin="0,2,0,0"/>
</ikw:SimpleStackPanel>
<!-- 当前快捷键显示 -->
<Border Grid.Column="1"
Background="#F5F5F5"
BorderBrush="#D0D0D0"
BorderThickness="1"
CornerRadius="3"
Margin="10,0,0,0"
Padding="8,4">
<TextBlock x:Name="CurrentHotkeyTextBlock"
Text="未设置"
FontSize="12"
Foreground="#666666"
MinWidth="80"
TextAlignment="Center"/>
</Border>
<!-- 设置按钮 -->
<Button x:Name="BtnSetHotkey"
Grid.Column="2"
Content="设置"
Width="60"
Height="28"
Background="#0066BF"
Foreground="White"
FontSize="12"
Margin="10,0,0,0"
Click="BtnSetHotkey_Click"/>
</Grid>
</Border>
</UserControl>