Whenever the textbox is focused, the border and foreground of the text is changed according to the current theme:
theme light ->border:black, text:white, background:transparent
theme dark ->border:white, text:white, background:white
I want the textbox always have border:white, text:white, background:transparent
I can control these settings when the textbox is not focused, but I cannot change background when it has focus.
The XML of the textbox is:
<TextBox InputScope="EmailSmtpAddress" Height="72" LostFocus="textBox1_LostFocus" GotFocus="textBox1_GotFocus" HorizontalAlignment="Left" Margin="0,62,0,0" Name="textBox1" Text="Enter URL here..." VerticalAlignment="Top" Width="460" TextChanged="textBox1_TextChanged" Foreground="White" Background="#005DADF5" SelectionForeground="White" BorderBrush="#DEEAEAEA" FontFamily="Tahoma" FontWeight="Normal" />