Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Dic.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>



A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll

Additional information: 'Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '9' and line position '18'.

How to resolve this exception, Please help me,,,
Posted
Comments
[no name] 12-Oct-15 8:47am    
What is the path of "Dic.xaml" with respect to the page. Is it at the same level if yes you can try with : Source="Dic.xaml"

1 solution

Hi, use the following,
If you are having Dic.xaml inside a folder, then use the following,
C#
<ResourceDictionary Source="/YouProjectNamespaceHere;Component/YourFolderNameHere/Dic.xaml" />

Otherwise, use
C#
<ResourceDictionary Source="/YouProjectNamespaceHere;Component/Dic.xaml" />
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900