This commit is contained in:
Mahdi committed 2019-11-28 20:29:19 +03:30
1 parent c8fd795574
commit ca344f5a71
2 files changed
+2 -6

No files matched your search

@@ -20,7 +20,7 @@ namespace HandyControl.Media.Animation
public GeometryAnimation() public GeometryAnimation()
{ {
System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
} }
public GeometryAnimation(string fromValue, string toValue) : this() public GeometryAnimation(string fromValue, string toValue) : this()
@@ -40,11 +40,7 @@ namespace HandyControl.Media.Animation
public GeometryAnimationUsingKeyFrames() public GeometryAnimationUsingKeyFrames()
{ {
var currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Parent.Name; System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
if (!currentCulture.Equals("en", StringComparison.OrdinalIgnoreCase))
{
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
}
_areKeyTimesValid = true; _areKeyTimesValid = true;
} }