Hi
null is not declared
but if found another solution
.BorderThickness = New Thickness(0, 0, 0, 0)
.Background = New SolidColorBrush(Windows.UI.Colors.Transparent)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I have a textbox the backgroung is set to nobrush
the xaml file
<TextBox x:Name="Titlechart" Background="{x:Null}" >
How to get the same in code c# or vb.net
Thanks
Hi
null is not declared
but if found another solution
.BorderThickness = New Thickness(0, 0, 0, 0)
.Background = New SolidColorBrush(Windows.UI.Colors.Transparent)
Hello,
Welcome to Microsoft Q&A!
The method "Background="{x:Null}"" means it will create a null brush, and the Background property of TetxBox will get or set a brush that provides the background of the control. So if you want the achieve the same effect in code-behind, you just need to set the Background as null.
.cs:
Titlechart.Background = null;