3

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.

user2660964
  • 141
  • 1
  • 9

1 Answers1

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?

Community
  • 1
  • 1
Mike D.
  • 391
  • 1
  • 6