简体   繁体   中英

App Bar Icon XAML WP8

I wish to use this icon for my app bar button on a windows phone app.

I can do it using the .png files. But how to use it in XAML for Windows Phone.

I am looking for a way to do it like that in Windows 8. ie- using it with Content Tag and using a Font to draw it.

This is not possible with the current Windows Phone SDK.

The ApplicationBarIconButton only support rendered images.

Download and add the image to the project.

/Assets/1F698-Car.48.png

In Xaml :

xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"

<phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar>
        <shell:ApplicationBarIconButton IconUri="/Assets/1F698-Car.48.png"
                                        Text="Car" />
    </shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM