Well, here it goes. I'm now going to publicly yell out the fact that I'm a lazy, ignorant person. A while back I wrote a little demo on how to store styles externally using my "ExternalStyleManager". I thought the idea was good and served a purpose besides being a good example for using attached properties... Well...
I had a fellow Silverlighter check it out to see if I was doing anything bad. Well, she came back and told me to have a look at the ImplicitStyleManager in the Silverlight Toolkit. Well, apparently it has more of less this functionality already. All you have to do is add a manager and set the ResourceDictionaryUri property. She also sent along a very good blog post for me to read about it as well.
Well there you have it! I'm lazy and ignorant. I should start reading up and checking out the Toolkit... Thanks Bea for setting me straight!
The feature of the ExternalStyleManager might have been less than useful if you are using the ImplicitStyleManager, but I still claim it to be a good way of showing how to use attached properties. The ImplicitStyleManager is however thoroughly tested by the testers at Microsoft, so it is probably a better solution.
After this embarrassing little happening, I will now have a look at the toolkit. I will probably add a few posts about it in the future. I'm unfortunately a bit busy at the moment since I'm about to move from Sweden to New Zealand at the end of March... But I will try...