From 3547e5cc6ac47be5dacda550fd64f892fcdcde5b Mon Sep 17 00:00:00 2001 From: WoochanLee Date: Thu, 13 Oct 2022 19:47:24 +0900 Subject: [PATCH] [NUI] Picker: Protect delegate from GC --- src/Tizen.NUI.Components/Controls/Picker.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Tizen.NUI.Components/Controls/Picker.cs b/src/Tizen.NUI.Components/Controls/Picker.cs index 3c8f56a..de307e0 100755 --- a/src/Tizen.NUI.Components/Controls/Picker.cs +++ b/src/Tizen.NUI.Components/Controls/Picker.cs @@ -938,6 +938,7 @@ namespace Tizen.NUI.Components customScrollAlphaFunction = new UserAlphaFunctionDelegate(CustomScrollAlphaFunction); animation.DefaultAlphaFunction = new AlphaFunction(customScrollAlphaFunction); + GC.KeepAlive(customScrollAlphaFunction); animation.Duration = (int)panAnimationDuration; animation.AnimateTo(ContentContainer, "PositionY", (int)destination); animation.Play(); -- 2.7.4