feat: remove item template dependency

This commit is contained in:
rabbitism
2023-06-29 03:28:04 +08:00
parent c878e45047
commit 69e2ce9980
2 changed files with 4 additions and 4 deletions

View File

@@ -17,8 +17,8 @@
<ControlTemplate TargetType="u:TagInput">
<Border
MinHeight="30"
Padding="4"
VerticalAlignment="Top"
Padding="8,4"
VerticalAlignment="Stretch"
Background="{DynamicResource SemiColorFill0}"
CornerRadius="3">
<Panel HorizontalAlignment="Stretch">
@@ -55,7 +55,7 @@
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="Template">
<ControlTemplate TargetType="TextBox">
<Border>
<Border Padding="0,4">
<ScrollViewer
Width="{Binding $parent[TextBox].Bounds.Width}"
AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}"