2012-08-29 58 views
1

我是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"/> 

回答

6

我相信你刚才设置不透明度...

Opacity="0.5" 

导致这个....

enter image description here

代码完全...

<Rectangle Height="210" HorizontalAlignment="Left" Margin="66,474,0,0" Name="rectangle1" Stroke="White" StrokeThickness="1" Fill="Chartreuse" VerticalAlignment="Top" Width="134" /> 

...

<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"/>