The children will inherit the parent's opacity - I don't think there's a
way to stop that.

Make the text boxes siblings of the border, and not children.

<Grid>
<Border x:Name="Background" Opacity="0.6" />
<Border x:Name="Content>
  <TextBox />
  <TextBox />
</Border>
</Grid>

-x

On 4 June 2012 13:39, Greg Keogh <[email protected]> wrote:

> Folks, I wanted to have a <Border> with Opacity="0.6" so that it shows a
> hint of the background colour, then put some text and boxes inside. I don’t
> want the controls inside to also be transparent so I put Opacity="1" on
> them. However this doesn’t seem to work as I planned and the inside
> controls seem to be inheriting the Border’s Opacity.****
>
> ** **
>
> If you can see the image below you’ll see that the text and boxes are
> faded. Is there some trick I’m forgetting to prevent the children from
> inheriting the parent’s Opacity? -- Greg****
>
> ** **
>
> ****
>
> _______________________________________________
> ozwpf mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf
>
>
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to