gpt4 book ai didi

resourcedictionary - 为每个项目类型单独的 ResourceDictionary

转载 作者:行者123 更新时间:2023-12-01 23:56:21 26 4
gpt4 key购买 nike

我已经在我的共享项目中毫无问题地创建了一个 ResourceDictionary。但是,我的某些样式会非常特别* Windows Phone 8.1 而不会在 Windows 8.1 中使用。由于 Windows Phone 项目中没有 App.xaml,我如何为 Windows Phone 指定一个 ResourceDictionary?

*除了不同的大小和边距,大量使用 PhoneAccentBrush,这在 Windows 应用商店应用程序中显然不可用。

或者,如果 Shared ResourceDictionary 是首选方法,我该如何使用 PhoneAccentBrush 和其他仅限 WP 的资源?

最佳答案

As there's no App.xaml in the Windows Phone project

这不可能是真的。如果没有 App.xaml,应用程序将无法编译。你可能没有在共享项目中注意到它?

App.xaml

我没有看到移动/复制到每个项目 App.xaml 的问题

关于resourcedictionary - 为每个项目类型单独的 ResourceDictionary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23445015/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com