Browse Source

[修复]TextBox绑定CornerRadius失败问题

Jiangsheng 2 tuần trước cách đây
mục cha
commit
1850f6cdda
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      SKMC.UI/Styles/TextBox.xaml

+ 1 - 2
SKMC.UI/Styles/TextBox.xaml

@@ -209,8 +209,7 @@
                         <Border
                             x:Name="boder"
                             Background="{Binding Background, RelativeSource={RelativeSource TemplatedParent}}"
-                            BorderThickness="{TemplateBinding BorderThickness}"
-                            CornerRadius="{Binding CornerRadius, RelativeSource={RelativeSource TemplatedParent}}">
+                            BorderThickness="{TemplateBinding BorderThickness}">
                             <FrameworkElement.Style>
                                 <Style TargetType="{x:Type Border}">
                                     <Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />