2012-08-29 63 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"/>