リソースにObjectDataProviderの追加の問題
-
29-10-2019 - |
質問
私はXAMLでいくつかのものを設定していますが、何らかの理由で問題があります。 ObjectDataproviderをリソースに追加しようとしていますが、それを行っているときは、ResourcedictionNaryにこの警告を受け取ります。すべてが重要な属性を持っていない場合、ResourcedictionNaryに複数のアイテムを持っていることはできません。そこで、ResourcedictionNaryにキーを追加しますが、ContentControlの動的リソースに問題があります。 「DefaultEmptyPane」を解決できないと書かれています。次に、ResourcedictionNaryのキーへの参照を追加しますが、いくつかの不一致があります。
ここで問題を見ている人はいますか?以下はXAMLです:
<Page.Resources>
<!--<ObjectDataProvider x:Key="projectList" MethodName=""/>-->
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Resources/Panes/DefaultEmptyPane.xaml" />
</ResourceDictionary.MergedDictionaries>
<local:PopulationNameGetNameOnlyConverter x:Key="PopulationNameGetNameOnlyConverter"/>
<local:PopulationNameGetNumberOfTestsConverter x:Key="PopulationNameGetNumberOfTestsConverter"/>
<local:PopulationNameGetDateConverter x:Key="PopulationNameGetDateConverter"/>
<local:NormValidationValueToVisibilityConverter x:Key="NormValidationValueToVisibilityConverter"/>
<local:NormrequestCalculatedToVisibilityConverter x:Key="NormrequestCalculatedToVisibilityConverter"/>
<local:RemoveUnderscoreConverter x:Key="RemoveUnderscoreConverter"/>
</ResourceDictionary>
</Page.Resources>
<ContentControl Template="{DynamicResource DefaultEmptyPane}">
<!--Content-->
</ContentControl>
正しい解決策はありません
所属していません StackOverflow