Reset TextBox.Background to default in WPF so it still gets updated when system settings change

Posted by Neo on Stack Overflow See other posts from Stack Overflow or by Neo
Published on 2010-05-20T19:41:22Z Indexed on 2010/05/21 2:30 UTC
Read the original article Hit count: 303

Filed under:
|
|
|
|

I have a TextBox that I wish to reset its Background property to its default value after changing it to a different colour.

I have tried setting it to SystemColors.WindowBrush, but then, if the Display Settings are updated to change this value, it doesn't get dynamically reflected in the TextBox (it does normally if TextBox.Background hasn't been touched).

Any idea how to do this?

© Stack Overflow or respective owner

Related posts about textbox

Related posts about background