关于文本框焦点边框颜色。 C#XamlWindowsPhone8.1
about Textbox Focus's Border color . C# Xaml Windows Phone8.1
现在我正在做一个编辑器。
当文本框被聚焦时,出现蓝色边框线
像这样(左右的蓝线)。
但我不需要这条蓝色(焦点)线。所以,我想擦掉这些线条。
而且我不知道怎么擦掉。
现在我的 xaml 代码是这样的。
<TextBox x:Name="textBox"
Background="White"
HorizontalAlignment="Center"
VerticalAlignment="Center"
TextWrapping="Wrap"
Width="360"
Height="200"
Text="TextBox" />
这些可以通过 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" />
现在我正在做一个编辑器。 当文本框被聚焦时,出现蓝色边框线
像这样(左右的蓝线)。
但我不需要这条蓝色(焦点)线。所以,我想擦掉这些线条。 而且我不知道怎么擦掉。
现在我的 xaml 代码是这样的。
<TextBox x:Name="textBox"
Background="White"
HorizontalAlignment="Center"
VerticalAlignment="Center"
TextWrapping="Wrap"
Width="360"
Height="200"
Text="TextBox" />
这些可以通过 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" />