Answers for "wpf set color in code"

C#
1

wpf set color in code

using System.Windows.Media;

textBox1.Background = Brushes.White;
textBox1.Background = new SolidColorBrush(Colors.White);
textBox1.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0, 0));
textBox1.Background = System.Windows.SystemColors.MenuHighlightBrush;
Posted by: Guest on June-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language