Sunday, October 30, 2011

Merged Dictionaries with ResourceDictionary set to linked XAML

As you know, you can add a linked XAML file using "Add as link" feature from "Add file" in Visual studio.

I created a folder in the project called 'HistogramControl' and then added different .cs and Histogram.xaml file as links.

Here is how app.xaml looks like:

For some reason it didn't initially work, I was getting 'invalid malformed' exception error when running the app. It looked like it didn't like the URI of the Source.

I closed VStudio, deleted bin and obj directories, and rebuilt. It worked!

No comments: