Dragging System.Windows.Media.Animation Warning

4 posts, 0 answers
  1. Diego
    Diego avatar
    11 posts
    Member since:
    May 2009

    Posted 10 Nov 2009 Link to this post

    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



  2. Bobi
    Admin
    Bobi avatar
    513 posts

    Posted 12 Nov 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Yossi Naar
    Yossi Naar avatar
    14 posts
    Member since:
    Feb 2010

    Posted 04 Mar 2010 Link to this post

    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.
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 09 Mar 2010 Link to this post

    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.
Back to Top