Hello everyone, I hope that I'm not repeating this question...
I am trying to get access to the resources of an element in the code behind of my Silverlight application. The ultimate goal is to be able to load up a snippet of XAML and then iterate through it's resources to see if it contains Storyboards etc. In other words, I will not know the actual names of the resources at the time that the XAML is loaded, and I want to still get access to these resources if they exist through my C# code.
In trying to do this, whenever I checked the FrameworkElement.Resources.Count property it was 0. I tried checking it right after I loaded the XAML, after I added the new XAML to the LayoutRoot, and then again after I triggered a mouse event. Every time it read as Count = 0. So then I figured there may be an issue with loading XAML with the LOCAL resources set [ie. <Rectangle.Resources .../>] so I tried to set the resources on th ...
Go to the complete details ...