2016-03-03 82 views
1

现在我正在编辑。 当文本框的重点是,蓝色的边框线出现关于文本框焦点的边框颜色。 C#Xaml Windows Phone8.1

像这样(左和右的蓝线)。

enter image description here

但我并不需要这个蓝(重点)线。所以,我想抹掉这些线条。 而我不知道如何抹去。

现在我的xaml代码是这样的。

<TextBox x:Name="textBox" 
      Background="White" 
      HorizontalAlignment="Center" 
      VerticalAlignment="Center" 
      TextWrapping="Wrap" 
      Width="360" 
      Height="200" 
      Text="TextBox" /> 

这些可以通过xaml代码改变吗?

+1

'BorderThickness =“0”'help? – Sakura

+0

谢谢!有效! –

+1

很高兴帮助。我会把它作为答案发布。 – Sakura

回答

1

您似乎想要完全清除该边框。为此,请将BorderThickness="0"添加到您的XAML中:

<TextBox x:Name="textBox" 
     Background="White" 
     HorizontalAlignment="Center" 
     VerticalAlignment="Center" 
     TextWrapping="Wrap" 
     Width="360" 
     Height="200" 
     BorderThickness="0,0,0,0" 
     Text="TextBox" />