ystem.InvalidOperationException: Animation target not specified. in TiltInteractionInfo.Clear with RadDataBoundListBox Footer

3 posts, 0 answers
  1. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 21 Jan 2015 Link to this post

    Hello,

    I am running into an issue with a Button that is contained within the ListFooterTemplate of a RadDataBoundListBox.  When the user clicks on the button in the footer, the backing command in the view model will change the visibility of the button to make it Collapsed.  Note that this does not happen every time (most times it works fine).  Here is the crash that I see:

    System.InvalidOperationException: Animation target not specified.
    at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
       at MS.Internal.XcpImports.Storyboard_Begin(Storyboard storyboard)
       at Telerik.Windows.Controls.TiltInteractionInfo.Clear(Boolean animate)
       at Telerik.Windows.Controls.TiltInteractionEffect.EndTilting(Boolean animate)
       at Telerik.Windows.Controls.TiltInteractionEffect.OnElementManipulationCompleted(Object sender, RoutedEventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

    Any ideas on how to prevent this?

    Here is an overview of my setup:
    1. Using a RadDataBoundListBox
    2. ListFooterTemplate that has an embedded Button
    3. On click of the button, a Command in ViewModel will be called which will set the button's visibility to collapsed.
  2. Michael
    Michael avatar
    13 posts
    Member since:
    Apr 2013

    Posted 22 Jan 2015 in reply to Michael Link to this post

    Note that in my view's constructor I am enabling tilt by the following manner:

    InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem));

  3. DevCraft banner
  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 26 Jan 2015 Link to this post

    Hello Michael,

    I tried to reproduce the issue but on our side everything works fine. If you can provide us with a sample project we can further investigate what is the reason for this behavior.

    Regards,
    Ivaylo Gergov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top