summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
index 512e3047..978a5b5a 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xamarin.Forms.Internals;
+using System.Linq;
using ElmSharp;
using ESize = ElmSharp.Size;
using ERect = ElmSharp.Rect;
@@ -537,14 +538,14 @@ namespace Xamarin.Forms.Platform.Tizen
/// <param name="initialization">If set to <c>true</c> the method is called for an uninitialized object.</param>
protected void UpdateAllProperties(bool initialization)
{
- foreach (KeyValuePair<string, Action<bool>> kvp in _propertyHandlersWithInit)
+ foreach (var action in _propertyHandlersWithInit.Values.Distinct())
{
- kvp.Value(initialization);
+ action(initialization);
}
- foreach (KeyValuePair<string, Action> kvp in _propertyHandlers)
+ foreach (var action in _propertyHandlers.Values.Distinct())
{
- kvp.Value();
+ action();
}
}