How do I add overlay on particular container control?
e.g. I have a grid and it contains a textbox
now I want to add overlay on that grid and show some message, the contents of the grid being hidden,
How this can be achieved?
Code: Select all
<Grid x:Name="This_is_your_original_panel">
(...)
</Grid>
Code: Select all
<Grid>
<Grid x:Name="This_is_your_original_panel">
(...)
</Grid>
<Border x:Name="This_is_the_overlay" Opacity="0.5" Background="White">
<TextBlock Text="This is the content of the overlay" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
Users browsing this forum: No registered users and 2 guests