You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Normal (1.3.0-ALPHA155)
The animation is normal no matter at first time or not.
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.
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
The text was updated successfully, but these errors were encountered:
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.
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.
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 tobar.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
The text was updated successfully, but these errors were encountered: