我正在研究 WPF,我想更改背景---文本框的颜色(txtStatus.Background= 白色),但它给出了错误。这里我的代码是:
public Window2()
{
InitializeComponent();
txtStatus.Text = "Current Operation: NULL";
txtStatus.Background= white
}