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
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)
Thanks for sharing the solution, you can mark your own answer to help others.
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;
10 people are following this question.
How to write and read multiple types of data using Data Writer and Data Reader
Consuming UWP mail api from WPF Desktop Bridge App
Get Network usage information in UWP apps
How to Get/Set Cookies in Windows.Web.Http API
Switch the ListView Datatemplate from one data template to another data template?