[英]about Textbox Focus's Border color . C# Xaml Windows Phone8.1
Now I'm making a Editor. 现在,我要编辑。 When Textbox is Focused, blue border line appears
当文本框被聚焦时,出现蓝色边框线
like this (left and right's Blue lines). 像这样(左右两边的蓝线)。
But I don't need this Blue (Focus) lines. 但我不需要蓝色(焦点)线。 So, I want to erase these lines.
因此,我想删除这些行。 And I don't know how to erase.
而且我不知道如何擦除。
Now my xaml code is this. 现在,我的xaml代码是这个。
<TextBox x:Name="textBox"
Background="White"
HorizontalAlignment="Center"
VerticalAlignment="Center"
TextWrapping="Wrap"
Width="360"
Height="200"
Text="TextBox" />
These can be changed by xaml code ? 这些可以通过xaml代码更改吗?
You seem want to clear that border completely. 您似乎想完全清除该边界。 To do so add
BorderThickness="0"
to your XAML: 为此,将
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" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.