Xaml pending content

This code throws a XamlParseException:

'Set the property' System.Windows.ResourceDictionary.DeferrableContent 'threw an exception. "Line number" 15 "and line position" 14 ".

<UserControl x:Class="MyView.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:bv="clr-namespace:MyModel.FaultLibrary;assembly=Controller" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:i18n="http://wpflocalizeextension.codeplex.com" i18n:LocalizeDictionary.DesignCulture="en" i18n:ResxLocalizationProvider.DefaultAssembly="MyView" i18n:ResxLocalizationProvider.DefaultDictionary="I18n" xmlns:gif="http://wpfanimatedgif.codeplex.com" mc:Ignorable="d" d:DesignHeight="448" d:DesignWidth="955" FontFamily="Arial" TextOptions.TextFormattingMode="Display" SnapsToDevicePixels="True" UseLayoutRounding="True"> 

Internal exception:

Product has already been added. Key in the dictionary: 'DataTemplateKey (MyModel.FaultLibrary.TestPoint)' Added key: 'DataTemplateKey (MyModel.FaultLibrary.TestPoint)'

I do not know why...

Thanks for the help.

+4
source share
1 answer

It seems that there is some style / template that seems to have the same key or the other, some element has many styles. Check your resources and resource libraries.

+2
source

Source: https://habr.com/ru/post/1469541/


All Articles