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
What i have noticed is that the first animation frame that appears is the default SpinnerStyle for the control, which is SpinnerStyle.Line. After that first frame, i see my sequence of characters. When i looked at the constructor for the SpinnerView i see that it is calling AdvanceAnimation() and that is setting an index of 1, which is getting the "\" character from the SpinnerStyle (the 2nd element in the list). I have two questions.
Can we remove the call to AdvanceAnimation() from the constructor? (I am happy to do it) I don't see the purpose for doing it there, but i could be missing something.
It seems like this code, given the default values for _bounceReverse and SpinReverse, will start with the [1] element in the array, skipping the [0] element the first time through.
var d = 1;
if ((_bounceReverse && !SpinReverse) || (!_bounceReverse && SpinReverse))
{
d = -1;
}
_currentIdx += d;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
As part of my migration from v1 -> v2, i replaced my custom 'spinner' control with a
SpinnerView
. My implementation is as followsWhat i have noticed is that the first animation frame that appears is the default
SpinnerStyle
for the control, which isSpinnerStyle.Line
. After that first frame, i see my sequence of characters. When i looked at the constructor for theSpinnerView
i see that it is callingAdvanceAnimation()
and that is setting an index of 1, which is getting the "\" character from theSpinnerStyle
(the 2nd element in the list). I have two questions.Can we remove the call to
AdvanceAnimation()
from the constructor? (I am happy to do it) I don't see the purpose for doing it there, but i could be missing something.It seems like this code, given the default values for
_bounceReverse
andSpinReverse
, will start with the [1] element in the array, skipping the [0] element the first time through.Beta Was this translation helpful? Give feedback.
All reactions