AppBar 按钮图标不适合椭圆形

AppBar button icon not fitting inside elipse

嘿,我正在创建底部应用栏并向其中添加 3 个应用栏按钮,如下所示。一个使用内置图标,另外两个使用位图图标

<AppBarButton>
<AppBarButton.Icon>
    <BitmapIcon UriSource="ms-appx:///Assets/Like.png" Height="20" Width="20"/>
</AppBarButton.Icon>

带位图图标的 AppBarButton 在设计视图中正确显示,即包含在 appbar 按钮的 eclipse 中。但是当我将它部署到 phone 上时,应用栏按钮如下所示(右侧两个)

https://s24.postimg.org/q3yg74gx1/wp_ss_20150309_0002.jpg

有什么问题

我认为您可能已经忘记了适当的填充 - 更多信息 at MSDN:

我建议您在 PC 上的 Microsoft SDKs 文件夹中找到默认的 Windows Phone 图标。在我的例子中是 C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Icons\Light。在那里您可以检查如何为您的应用程序栏正确准备图标。

它们必须是 76 x 76 具有 alpha 通道的 PNG 图像(包括 padding)。