From 9ccf1d09845564d14f2410152ebc8de0dd3df958 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Sun, 19 Mar 2023 21:47:34 +0330 Subject: [PATCH] Update ThemeAnimationHelper.cs --- .../HandyControls/Tools/Helper/ThemeAnimationHelper.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/HandyControls/Tools/Helper/ThemeAnimationHelper.cs b/src/Shared/HandyControl_Shared/HandyControls/Tools/Helper/ThemeAnimationHelper.cs index 0f659b97..29f1b506 100644 --- a/src/Shared/HandyControl_Shared/HandyControls/Tools/Helper/ThemeAnimationHelper.cs +++ b/src/Shared/HandyControl_Shared/HandyControls/Tools/Helper/ThemeAnimationHelper.cs @@ -6,7 +6,11 @@ namespace HandyControl.Tools; public static class ThemeAnimationHelper { - public async static void AnimateTheme(UIElement element, SlideDirection slideDirection, double durationSeconds, double fromOpacity, double toOpacity) + public +#if !NET40 + async +#endif + static void AnimateTheme(UIElement element, SlideDirection slideDirection, double durationSeconds, double fromOpacity, double toOpacity) { if (element != null) {