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" />
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With