I am trying to make transparent Grid but Text(or something else) on it not transparent. What i am supposed to do? And sorry for my English.
Asked
Active
Viewed 876 times
3
-
1If you want to hide it, collapse it. Don't just set its color to transparent. – Aug 07 '13 at 13:50
-
No I've set opacity 0.9 so it's not a transparent. – user2660964 Aug 07 '13 at 13:55
1 Answers
4
Per an older question, the trick to allow a child element to override the opacity is to use a brush on the parent's background instead:
<Grid.Background>
<SolidColorBrush Color="Black" Opacity="0.5"/>
</Grid.Background>
You can find more here: How do you override the opacity of a parent control in WPF?