Storyboard SetTarget only works on UIElements, but throws no exception - by Moby Disk

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 723701 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 2/6/2012 11:09:23 AM
Access Restriction Public
Moderator Decision Sent to Engineering Team for consideration

Description

Storyboard.SetTarget() does not work if passed a DependencyObject that has no name, and is not a UIElement.  The call succeeds with no exception, by the storyboard will not animate.  The workaround is to use Storyboard.SetTargetName instead, and call RegisterName the DependencyObject. The documentation and method signature for for Storyboard.SetTarget do not indicate this restriction.

See this often-linked discussion for details:
http://stackoverflow.com/questions/2338714/why-dont-these-animations-work-when-im-using-a-storyboard
Sign in to post a comment.
Posted by Microsoft on 2/7/2012 at 4:24 PM
We are not going to be able to fix this issue in our next release. Hopefully one of the workarounds mentioned on the stackoverflow site will work for you. Good luck.
Posted by MS-Moderator09 [Feedback Moderator] on 2/6/2012 at 6:28 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 2/6/2012 at 11:42 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)