From ca344f5a717eae4d7480d43b3c3dc86c47954fd3 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Thu, 28 Nov 2019 20:29:19 +0330 Subject: [PATCH] fix --- .../Media/Animation/GeometryAnimation.cs | 2 +- .../Media/Animation/GeometryAnimationUsingKeyFrames.cs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimation.cs b/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimation.cs index 9ae41362..91affe56 100644 --- a/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimation.cs +++ b/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimation.cs @@ -20,7 +20,7 @@ namespace HandyControl.Media.Animation public GeometryAnimation() { - + System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; } public GeometryAnimation(string fromValue, string toValue) : this() diff --git a/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimationUsingKeyFrames.cs b/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimationUsingKeyFrames.cs index 73752b24..b26ecb17 100644 --- a/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimationUsingKeyFrames.cs +++ b/src/Shared/HandyControl_Shared/Media/Animation/GeometryAnimationUsingKeyFrames.cs @@ -40,11 +40,7 @@ namespace HandyControl.Media.Animation 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"); - } + System.Threading.Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; _areKeyTimesValid = true; }