2011-07-20 20 views
0

黑暗的主題就設在這裏我如何參考windows phone 7 sdk中的黑暗主題圖標?

C:\ Program Files文件(x86)的\微軟的SDK \的Windows Phone \ V7.0 \圖標\暗

我如何引用此文件,例如appbar.next。在下面的rest.png中

<phone:PhoneApplicationPage.ApplicationBar> 
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> 
     <shell:ApplicationBarIconButton IconUri="/Images/appbar.prev.rest.png" Text="Previous"/> 
     <shell:ApplicationBarIconButton IconUri="/Images/appbar.next.rest.png" Text="Next"/> 

.... 

回答

3

對於應用程序欄圖標,您不需要切換不同主題的路徑。應用程序欄使用圖像作爲適當主題顏色的遮罩。這樣你只需要提供白色和透明的圖像。

您可以在Creating Custom Application Bar Icon