'Element is already the child of another element' error in Silverlight App.xaml
Posted
by rwwilden
on Stack Overflow
See other posts from Stack Overflow
or by rwwilden
Published on 2009-11-13T08:32:36Z
Indexed on
2010/05/17
20:11 UTC
Read the original article
Hit count: 1681
Hi,
I keep getting a strange error inside my App.xaml
file: Element is already the child of another element.
My App.xaml file looks like this:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Celerior.Annapurna.SL.App">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ProvisiorResourceDictionary.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
The error is reported for the entire ResourceDictionary
element (from lines 5 to 9).
ProvisiorResourceDictionary.xaml
contains a number of styles and templates. Nothing exciting in my opinion.
Does anyone know what is wrong?
Kind regards,
Ronald Wildenberg
© Stack Overflow or respective owner