XAMLでいくつか設定していますが、何らかの理由で問題が発生しています。ObjectDataProviderをリソースに追加しようとしていますが、そうすると、resourcedictionnaryにこの警告が表示され、すべてのアイテムにキー属性がない場合、resourcedictionnaryに複数のアイテムを含めることはできません。そこで、resourcedictionnaryにキーを追加しましたが、コンテンツコントロールの動的リソースに問題があります。「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>