简体   繁体   中英

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.

    <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 ?

You seem want to clear that border completely. To do so add BorderThickness="0" to your XAML:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM