我想在silverlight页面上添加透明图层。
答案 0 :(得分:0)
我在StackPanel
内使用Grid
来执行此操作:
<Grid>
<!--- Here is my normal content -->
<StackPanel HorizontalAlignment="Stretch" Opacity="0.8" VerticalAlignment="Stretch" >
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="Something on the overlay!"/>
</StackPanel>
</Grid>