Here is one way to achieve the effect:
<Grid> <Grid Background="LightGray"> <Rectangle Margin="10,10,0,0" Fill="DarkGray" RadiusX="8" RadiusY="8"/> <Border Margin="4" BorderBrush="White" Background="LightGray" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8"> <TextBlock Margin="10" Text="Hello, world!" FontSize="24" FontWeight="Bold"/> </Border> </Grid> </Grid>
I made the colors darker and the roundness bigger to make it easier to see the demo:

It scales to an accessible place, and the content goes abroad.
Rick sladkey
source share