mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-11-30 10:57:51 +08:00
Fixed #184
This commit is contained in:
parent
db299d4fe9
commit
c8fd795574
@ -38,7 +38,15 @@ namespace HandyControl.Media.Animation
|
||||
|
||||
private bool _areKeyTimesValid;
|
||||
|
||||
public GeometryAnimationUsingKeyFrames() => _areKeyTimesValid = true;
|
||||
public GeometryAnimationUsingKeyFrames()
|
||||
{
|
||||
var currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Parent.Name;
|
||||
if (!currentCulture.Equals("en", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
|
||||
}
|
||||
_areKeyTimesValid = true;
|
||||
}
|
||||
|
||||
public new GeometryAnimationUsingKeyFrames Clone() => (GeometryAnimationUsingKeyFrames)base.Clone();
|
||||
|
||||
@ -516,4 +524,4 @@ namespace HandyControl.Media.Animation
|
||||
while (index < maxKeyFrameIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user