I need to be able to start and stop a usercontrol or storyboard background from code for a
particular radtreeviewitem when I want to alert the user that something has
happened for a contact.
I have a databound radtreeview for a contact list.
Inside the datatemplate I have a usercontrol I have created (ContactBackgroundControl) which is just a stackpanel with a background that goes from transperent to a color and back again.
When I try the code below, I get an error "Reference is not a valid visual DependencyObject" refering to when I do the FindChildByType call searching for the type "ContactBackgroundControl". I have also tried the type "UserControl", but that results in the same exact error.
Is there any way to get a reference to the particular usercontrol inside the radtreeview item so I can start or stop the usercontrol storyboard? Or is there some better method to pull off an effect like this?
Thanks!