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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user