1

hello i am trying to use the wpf dictionay and i am having the follwing exception:

exception Provide value on 'System.Windows.StaticResourceExtension' threw an exception.'
Line number '6' and line position '80'."}   
System.Exception {System.Windows.Markup.XamlParseExceptionty}

i think that i acted by the book i created a folder and named it Resources,inside it i put two Resource dictionaries ,ColorsAndBrushes.xaml and DefaultStyles.xaml, i typed :

<ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="Resources/ColorsAndBrushes.xaml"/>
            <ResourceDictionary Source="Resources/DefaultStyles.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

inside the app.xaml file but still i am getting this exception, i would like to know what i am doing wrong , thanks in advance for your help.

EDIT:

i just did i found out what was my problem ther was a staticResource call on the Xaml file which wasnt defined sorry for the waste of your time

3
  • Can you post your entire App.xaml Commented Dec 28, 2010 at 21:18
  • i just did i found out what was my problem ther was a staticResource call on the Xaml file which wasnt defined sorry for the waste of your time Commented Dec 28, 2010 at 21:31
  • 3
    If you want to keep the question here, post the solution as an answer and accept it in a couple of days. That way anyone else with the same problem in the future will be helped. Commented Dec 28, 2010 at 21:35

1 Answer 1

2

okay so i made a mistake and left Color = "{StaticResource violetColor}" attribute which did not exist

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.