Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to perform action because the specified Storyboard was never applied to this object for interactive control. #5

Closed
sekulicb opened this issue Dec 26, 2016 · 7 comments

Comments

@sekulicb
Copy link

Hi,

thanks for the library, works awesome. Just wanted to ask you something. When i use your loading indicator, i get the following warning in output window:

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='SetSpeedRatio'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55397001'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Controls.Border'; TargetElement.HashCode='36423148'; TargetElement.Type='System.Windows.Controls.Border'

"IsActive" property is done with binding, but SpeedRatio is just hardcoded in xaml and set to "2.0". Any thoughts on this?

All the best,
Bane

@zeluisping
Copy link
Owner

Hey, sorry for the late reply, don't really have much personal time at the moment due to studies. This is probably a program in the control code, I will see if I can take a look at it. Maybe soon enough I'll be able to look at it all to review the library as a whole. Thank you for your support and for bringing this up, best of luck with your projects and as soon as I can I will take a look into the library, thank you!

@zeluisping zeluisping added the bug label Jan 30, 2018
@christopher-bonitz
Copy link

I experienced this as well today, although never had any issues before.
The icon loads fine to begin with, then later on it spits out this error, and then afterwards its unable to show the icon.

Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='SetSpeedRatio'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='51826478'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Controls.Border'; TargetElement.HashCode='63785121'; TargetElement.Type='System.Windows.Controls.Border'

Any quick fixes or suggestions are most welcome. :)

@HonuDev
Copy link

HonuDev commented May 7, 2018

Simple fix. In the OnApplyTemplate method, Line 106 in LoadingIndicator.cs, change:

if (state.Name == "Active")
to
if (state.Name == "Active" && this.IsActive)

@sekulicb
Copy link
Author

Thanks for fix, although my problem disappeared by it self at some point in dev cycle. Not sure when but it was while back.

@zeluisping
Copy link
Owner

Hey guys, sorry for the inactivity, the project is quite simple and I did not find the time that would justify being used on this.

@HonuDev Thank you for the solution, I will add that once I have some free time. Of course you'll be mentioned as solutioner, thank you! If you'd rather want to submit a pull request, feel free to do so. 😄

@zeluisping
Copy link
Owner

I'm going to leave this issue open as I'd like to know if #6 already contains the fix for this.

@victorprocure #6 is your PR, what would be the status of this bug there?

@zeluisping
Copy link
Owner

I'm pretty sure this is fixed by #6 , closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants