【问题标题】:Windows Phone: AppBar icons appearing differently on the deviceWindows Phone:AppBar 图标在设备上的显示方式不同
【发布时间】:2010-10-16 00:03:49
【问题描述】:

我在 Expression Blend 中模拟一个应用程序。应用栏在 Blend 中看起来不错,但是当我启动模拟器时,图标显示不正确。

应用栏的 XAML:

    <shell:ApplicationBar x:Name="FavoritesBar" IsVisible="True" IsMenuEnabled="True">
      <shell:ApplicationBarIconButton IconUri="/assets/appbar.favs.rest.png" Text="favorites"/>
  </shell:ApplicationBar>

左下方是它在 Expression Blend 中的呈现方式。右下方是它在模拟器中的显示方式。

我在这里做错了什么?

【问题讨论】:

    标签: silverlight xaml windows-phone-7


    【解决方案1】:

    确保您已在 Properties->Build Action 中将 appbar.favs.rest.png 标记为 Content。

    【讨论】:

    • 在 VS 2010 中,我没有看到 Properties->Build Action。但是,我看到了“构建”和“构建事件”。在 Blend 中,我只看到两个 .xml 文件和一个 .cs 文件。
    • 哦,等等,不同的属性。
    猜你喜欢
    • 2017-06-03
    • 1970-01-01
    • 2012-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多