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

Weird MetroProgressBar animation with IsIndeterminate=true #2591

Closed
p76984275 opened this Issue Jul 21, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@p76984275
Contributor

p76984275 commented Jul 21, 2016

What steps will reproduce this issue?

This happens after upgrading from 1.3.0-ALPHA155 to 1.3.0-ALPHA178

I use the MetroProgressBar in a custom control to make a busy indicator.
It only occurs when the MetroProgressBar's IsIndeterminate=true and Visibility is not Visible at first.
It is fine if the bar's Visibility is Visible at first.

The Issue's Sample Code
https://github.com/p76984275/ProgressBarIssue

Normal (1.3.0-ALPHA155)
The animation is normal no matter at first time or not.
1 3 0-alpha155

Weird (1.3.0-ALPHA178)
When the bar becomes visible at first time, the animation starts with a delay and the width is wrong. But after that the animation keeps normal as above. Only at first time this issue happens.
1 3 0-alpha178

Expected outcome

I found that at first time, bar.ActualSize() will return 0 with Weird (1.3.0-ALPHA178) but the right width with Normal (1.3.0-ALPHA155).

It works as before if changing bar.Invoke(resetAction); back to bar.Dispatcher.BeginInvoke(DispatcherPriority.Background, resetAction);

I'm not sure if there is any concern to use that workaround or maybe there are some mistakes in my custom control. Would you please give me some advice? Many thanks.
.

Environment

  • MahApps.Metro 1.3.0-ALPHA178
  • Windows 7 x64
  • Visual Studio 2015
  • .NET Framework 4.5.2

@punker76 punker76 added this to the 1.3.0 milestone Jul 22, 2016

@punker76 punker76 self-assigned this Jul 22, 2016

@punker76 punker76 added the Bug label Jul 22, 2016

@punker76 punker76 closed this in fd1bc28 Jul 22, 2016

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Jul 22, 2016

Member

@p76984275 Thx for your sample, should be work now.

Member

punker76 commented Jul 22, 2016

@p76984275 Thx for your sample, should be work now.

@h82258652

This comment has been minimized.

Show comment
Hide comment
@h82258652

h82258652 Oct 9, 2016

@punker76
It is still not fixed in 1.3.0.
Here is my code.
sp161009_104347
sp161009_104401
And the result.
aaa
Does any code to solve this problem until next version?

Environment

MahApps.Metro 1.3.0
Windows 10 x64 14393.222
Visual Studio 2015 update 3
.NET Framework 4.6.2

h82258652 commented Oct 9, 2016

@punker76
It is still not fixed in 1.3.0.
Here is my code.
sp161009_104347
sp161009_104401
And the result.
aaa
Does any code to solve this problem until next version?

Environment

MahApps.Metro 1.3.0
Windows 10 x64 14393.222
Visual Studio 2015 update 3
.NET Framework 4.6.2

@h82258652

This comment has been minimized.

Show comment
Hide comment
@h82258652

h82258652 Oct 26, 2016

@punker76 still here? Maybe I should open another issue?

h82258652 commented Oct 26, 2016

@punker76 still here? Maybe I should open another issue?

@oliverw

This comment has been minimized.

Show comment
Hide comment
@oliverw

oliverw Jan 30, 2017

Confirmed. Not fixed in 1.4.1

oliverw commented Jan 30, 2017

Confirmed. Not fixed in 1.4.1

@punker76 punker76 reopened this Jan 30, 2017

@punker76 punker76 modified the milestones: 1.4.2, 1.3.0 Jan 30, 2017

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Jan 30, 2017

Member

@oliverw Got it. Will be fixed in 1.4.2

Member

punker76 commented Jan 30, 2017

@oliverw Got it. Will be fixed in 1.4.2

@punker76 punker76 closed this Jan 30, 2017

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