加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-8 – 找不到名称/密钥AppBarButtonStyle的资源

发布时间:2020-12-14 03:53:07 所属栏目:Windows 来源:网络整理
导读:winrt中包含的常见风格让我有个例外 Button Style="{StaticResource AppBarButtonStyle}" / 此基本代码触发无法找到具有Name / Key AppBarButtonStyle异常的资源 公共资源包含在我的app.xaml中,我可以浏览此样式的定义. 我错过了一些非常大的东西吗? ps:我
winrt中包含的常见风格让我有个例外

<Button Style="{StaticResource AppBarButtonStyle}" />

此基本代码触发无法找到具有Name / Key AppBarButtonStyle异常的资源

公共资源包含在我的app.xaml中,我可以浏览此样式的定义.

我错过了一些非常大的东西吗?

ps:我试过重启VS

解决方法

在Windows 8.1中,已删除包含AppBarButtonStyle的StandardStyles.xaml文件.相反,您可以使用AppBarButton,如下所示:

<AppBarButton Icon="Play" Label="Play" />

查看Tim Heuer撰写的这篇文章:
http://timheuer.com/blog/archive/2013/10/29/remove-standardstyles-xaml-from-windows-8-1-winrt-projects.aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读