开发者

How do I reference the dark theme icons in the windows phone 7 sdk?

开发者 https://www.devze.com 2023-03-21 10:15 出处:网络
the dark theme is located here C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v7.0\\Icons\\dark

the dark theme is located here

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Icons\dark

How do I reference this file for example appbar.next.rest.png in the following

<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
        <shell:ApplicationBarIconButton IconUri="/Images/appbar.prev.rest.png" Text="Previous"/>
        <shell:Applica开发者_C百科tionBarIconButton IconUri="/Images/appbar.next.rest.png" Text="Next"/>

....


For application bar icons you don't need to switch the paths for different themes. The way application bar uses the image as a mask over the appropriate theme colour. This way you only need to provide the white and transparent image.

You can read more about this at Creating Custom Application Bar Icon

0

精彩评论

暂无评论...
验证码 换一张
取 消