【发布时间】:2018-04-04 16:29:05
【问题描述】:
在ResourceDictionary 文件中,我有一个样式,我尝试向该样式添加一些资源。不幸的是,成员 Resources 无法识别或无法访问。我需要明确地将资源保留在样式中。
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TestProject.Resources">
<Style>
<Style.Resources> <!--Style doesn't like it here-->
Uwp 的风格好像不太喜欢。是否有任何等效或足够的解决方法?或者我做错了什么。
【问题讨论】: