This commit is contained in:
Mahdi Hosseini authored and GitHub committed 2019-11-28 16:24:10 +03:30
1 parent db299d4fe9
commit c8fd795574
1 file changed
+10 -2
@@ -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);
}
}
}
}