I want to set a opacity in textbox in windows phone 7.1. I want to set opacity 20% for the background with #503E28 color code and 50% for foreground with #3B2D1E color code in the textbox in windows phone 7.1.
Try adding the alpha channel into the colour code
<TextBox Foreground="#803B2D1E"
Background ="#33503E28" ... />
I believe WP uses ARGB
values, so the first value is A
(alpha). Alternatively, you can style it using Expression Blend.