有人知道如何使按钮看起来像ApplicationBarIconButton
吗?我想将按钮放置在页面上的堆栈面板中,而不是应用程序栏中。
按钮必须具有相同的效果,并且图标图像周围必须有一个圆形圆圈。
试试这样的事情
<Border CornerRadius="50" BorderThickness="4" Height="68" Width="68" BorderBrush="White">
<Button Content="A" BorderThickness="0" Height="68" Width="68" Margin="-9,-4,-8,5" FontSize="36" Foreground="White"/>
</Border>
您可以在Expression Blend中绘制自己的按钮模板(WP7开发人员免费)
使用"{StaticResource PhoneContrastBackgroundColor}"
作为按钮的颜色。
允许您创建自定义图标的 http://www.syncfusion.com/downloads/metrostudio。我发现它们非常有用。我希望它也对你有帮助
Coding4Fun Toolkit 有一个 RoundButton 组件,我已经为此目的使用了很多次。只需指定图像,它就会绘制边框并调整手机的主题,就像应用程序栏一样。