Tôi đang cố gắng sử dụng một thành phần bên thứ 3 trong ứng dụng Silverlight của tôi và khi tôi cố gắng tạo ra một thể hiện của sự kiểm soát, tôi nhận được một XamlParseException:Bạn gỡ lỗi XamlParseException như thế nào?
{System.Windows.Markup.XamlParseException: **Set property 'System.Windows.FrameworkElement.Style' threw an exception.** [Line: 0 Position: 0]
---> System.Windows.Markup.XamlParseException: **Elements in the same ResourceDictionary cannot have the same x:Key** [Line: 1739 Position: 47]
at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
--- End of inner exception stack trace ---
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SpellCheckerSample.StandardSpellDialog.InitializeComponent()
at SpellCheckerSample.StandardSpellDialog..ctor()}
Làm thế nào tôi có thể gỡ lỗi này? Làm cách nào để biết dòng tệp 1739, vị trí 47 là gì?
Thật là một lỗi lạ khi báo cáo mặc dù –
Có, và một sự lãng phí thời gian! –