我是WP7的新手.我想让它半透明,所以整个页面都可以看到.但是,我搜索互联网并没有找到如何做到这一点.有人会为我提供示例或链接.提前致谢.
有我的代码:
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="true" IsMenuEnabled="True" BackgroundColor="FloralWhite" ForegroundColor="LightGreen">
<shell:ApplicationBarIconButton IconUri="images/light/flag.png" Text="Call Response"/>
<shell:ApplicationBarIconButton IconUri="images/buttons/call.png" Text="Call"/>
<shell:ApplicationBarIconButton IconUri="images/buttons/createEvent.png" Text="New Event"/>
<shell:ApplicationBarIconButton IconUri="images/buttons/eventCompleted.png" Text="Completed"/>
Run Code Online (Sandbox Code Playgroud)
我相信你只是设置了Opacity ......
Opacity="0.5"
Run Code Online (Sandbox Code Playgroud)
这导致了......

完整代码......
<Rectangle Height="210" HorizontalAlignment="Left" Margin="66,474,0,0" Name="rectangle1" Stroke="White" StrokeThickness="1" Fill="Chartreuse" VerticalAlignment="Top" Width="134" />
Run Code Online (Sandbox Code Playgroud)
...
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity=".75" BackgroundColor="Aqua" ForegroundColor="AliceBlue">
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1675 次 |
| 最近记录: |