This is a migrated thread and some comments may be shown as answers.

Dragging System.Windows.Media.Animation Warning

3 Answers 140 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Diego
Top achievements
Rank 1
Diego asked on 10 Nov 2009, 09:34 AM
Hi to all!
just a short post about a warning during a drag action on a treeview node.
During the drag operation i get always:

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control

I use the RadControls for WPF version 2009 SP3...to replicate the problem just run the demo: Telerik.Windows.Examples.TreeView.DragDrop you provided with the WPF controls and open the output window.

Thanks.
Diego Bonura



3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 12 Nov 2009, 02:52 PM
Hello Diego,

Thank you for reporting this issue.
We will investigate the problem. Your telerik points will be updated.
We deeply apologize if this caused you any inconvenience. 

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Yossi Naar
Top achievements
Rank 1
answered on 04 Mar 2010, 12:35 PM
Hi Boryana,

I am also experiencing the same issue with the RadTreeView.
I build a test project with just the tree and some data on the tree using HierarchicalDataTemplate, and i am getting the same error whenever i expend or collapse an element in the tree.
Any update on a fix for this?

thanks.
Yossi.
0
Miroslav
Telerik team
answered on 09 Mar 2010, 01:55 PM
Hello Yossi Naar,

The reason for this warning is that before we start an animation we stop the "opposite" animation (i.e. before collapsing we stop the expand animation). The two animations are created in Xaml and run by code in the controls.

Unfortunately in WPF we cannot really check if an animation is running or not. For example if you have this code:

var board = new Storyboard();
board.Stop();

you will see the same exception. If you try calling board.GetCurrentState() or board.GetCurrentTime() an InvalidOperationException is thrown because this animation has not started before. Ironically we need the current state to check if the animation is running or not. We could possibly track and transfer the current state of the animation to avoid stopping it before it starts for the first time but this will add more overhead in the animations.

Unless we find an acceptable workaround we will prefer to have the warning but not try-catch any exceptions.

We are aware of this issue and you can track and vote for it here:

http://www.telerik.com/support/pits.aspx#/public/wpf/460

Best wishes,
Miroslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Diego
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Yossi Naar
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or