Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set custom app bar button icons in windows 8

I want to set my own customs app bar icons which I downloaded . How can I set that this doesnot work

<AppBarButton x:Name="save" Click="save_Click" Label="Save" Icon="Assets/icon/1.png" />
like image 386
user3090763 Avatar asked Jun 01 '14 20:06

user3090763


1 Answers

Try adding it this way:

<AppBarButton Label="BitmapIcon" Click="AppBarButton_Click">
    <AppBarButton.Icon>
        <BitmapIcon UriSource="ms-appx:///Assets/icon/1.png"/>
    </AppBarButton.Icon>
</AppBarButton>

Check also if the path is correct and that the image is in the correct format to be displayed. You could also give a try using Blend to check if the image is working.

like image 166
Saverio Terracciano Avatar answered Nov 15 '22 13:11

Saverio Terracciano