This is a migrated thread and some comments may be shown as answers.
ystem.InvalidOperationException: Animation target not specified. in TiltInteractionInfo.Clear with RadDataBoundListBox Footer
2 Answers 2 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 21 Jan 2015, 09:54 PM
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 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 22 Jan 2015, 04:05 PM
Note that in my view's constructor I am enabling tilt by the following manner:

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

0
Ivaylo Gergov
Telerik team
answered on 26 Jan 2015, 04:02 PM
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.

 
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Share this question
or