修复错误

This commit is contained in:
ShrlAlgo
2025-09-12 09:55:36 +08:00
parent a86ed1c670
commit 0d0afbc78e
39 changed files with 706 additions and 737 deletions

View File

@@ -15,7 +15,7 @@
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="AllowDrop" Value="true" />
<Setter Property="AllowDrop" Value="True" />
<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
<Setter Property="ContextMenu" Value="{DynamicResource TextBoxContextMenu}" />
@@ -29,23 +29,23 @@
SnapsToDevicePixels="True"
x:Name="border">
<ScrollViewer
Focusable="false"
Focusable="False"
HorizontalScrollBarVisibility="Hidden"
VerticalScrollBarVisibility="Hidden"
x:Name="PART_ContentHost" />
</Border>
<ControlTemplate.Triggers>
<!-- TODO:禁用效果 -->
<Trigger Property="IsEnabled" Value="false">
<Trigger Property="IsEnabled" Value="False">
<Setter Property="TextElement.Foreground" TargetName="PART_ContentHost" Value="{DynamicResource TextDisabledBrush}" />
<Setter Property="Background" Value="{DynamicResource ControlBackgroundDisabledBrush}"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="true">
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource PrimaryNormalBrush}" />
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="true">
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource PrimaryFocusedBrush}" />
</Trigger>