Silverlight Transparency

Question:

Can a UserControl be transparent in parts for an external container?

Details:

I have a dialog that I would like to use in a separate UserControl. The control contains a border with a background that has alpha transparency with a grid inside it that has a white background and all content. In xaml markup, it looks something like this:

    <Border Margin="22,28,20,18" BorderBrush="Black" BorderThickness="1" Background="#30D7D7D7">
        <Grid Margin="155,148,145,198" Background="#FFFEFEFE">
            <TextBlock Margin="17,19,32,20" Text="Dialog part goes here." TextWrapping="Wrap"/>
        </Grid>
    </Border>

Problem:

When I go to the user control, even if I set the user control background to transparent, it does not display a transparent background for the border; he is solid.

+3
source share
1 answer

UserControl . , UserControl, , Background=Transparent.

+3

Source: https://habr.com/ru/post/1735333/


All Articles