The textBox has a ReadOnly state. So the easiest way is probably to template it, using the original template, but modifying the ReadOnly state. You can find the original template by extracting the generic.xaml using .NET reflector, or you can just use Blend...
The version i am looking at is 3...I don't remember there being a ReadOnly state in 2...but there might have been. Anyhow, that is what I would do... Either that or start writing code... Or you could possibly use Behaviors/Triggers-Actions to do it...
It sort of depends on what version you are using...
xsdf
Member
177 Points
255 Posts
How to changed the background of TextBox when it is readonly
Aug 03, 2009 12:23 AM | LINK
How to changed the background of TextBox when it is readonly ?
Thanks.
To be or not to be, it's not a question ,it's life.
ZeroKoll
Participant
764 Points
132 Posts
Re: How to changed the background of TextBox when it is readonly
Aug 03, 2009 12:44 AM | LINK
The textBox has a ReadOnly state. So the easiest way is probably to template it, using the original template, but modifying the ReadOnly state. You can find the original template by extracting the generic.xaml using .NET reflector, or you can just use Blend...
The version i am looking at is 3...I don't remember there being a ReadOnly state in 2...but there might have been. Anyhow, that is what I would do... Either that or start writing code... Or you could possibly use Behaviors/Triggers-Actions to do it...
It sort of depends on what version you are using...