This commit is contained in:
Mahdi Hosseini 2019-11-28 16:24:10 +03:30 committed by GitHub
parent db299d4fe9
commit c8fd795574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}
}