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

MetroProgressBar / IsIndeterminate / Animation Warning 6 #2492

Closed
ghost opened this issue May 9, 2016 · 4 comments
Closed

MetroProgressBar / IsIndeterminate / Animation Warning 6 #2492

ghost opened this issue May 9, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@ghost
Copy link

ghost commented May 9, 2016

What steps will reproduce this issue?

Use MetroProgressBar in a ControlTemplate. (in my case containing a grid and that is containing the MetroProgressBar)
Bind Property IsIndeterminate to a boolean view model property.
Toggle the view model property.

Problem

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

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

Expected outcome

No warnings would be nice.

Environment

  • MahApps.Metro v1.2.4.0
  • Windows 10
  • Visual Studio 2013 Update 5
  • .NET Framework 4.5.1
@punker76
Copy link
Member

punker76 commented May 9, 2016

@fremuc Can you provide a short sample on your GitHub account? And please let me know, if this already happens with the latest pre-release? Thx!!!

@ghost
Copy link
Author

ghost commented May 11, 2016

Sorry, i don't have much spare time for a while. I just wanted to notify about that issue.
As far as i see, the warning occurs on destroying the content (represented by the ControlTemplate). There are only 'stop' and 'remove' actions which fails. Inside the code of the MetroProgressBar, there is a method to get the 'ChildGrid' of the current ControlTemplate. I guess that the problem is somehow located there.

Maybe i will have some time at the upcoming weekend. So please don't close this issue, it really exists and the warnings in the output window are really annoying... :/

@ghost
Copy link
Author

ghost commented May 29, 2016

Here's the requested example:
https://github.com/fremuc/Code-Samples

@punker76 punker76 self-assigned this Jun 7, 2016
@punker76 punker76 added this to the 1.3.0 milestone Jun 27, 2016
@punker76 punker76 added the Bug label Jun 27, 2016
@punker76
Copy link
Member

@fremuc Thx for the sample! The issue should be fixed now with f84426d

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

No branches or pull requests

1 participant