From 4cc4089f36b0a9b9d754e33acb49da930f846699 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 13 May 2019 13:58:45 +0300 Subject: Some fixed to TCC mobile design. Implemented DFU reset on Machine Operator. --- .../Tango.Core/ExtensionMethods/FrameworkElementExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Tango.Core/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.Core/ExtensionMethods/FrameworkElementExtensions.cs b/Software/Visual_Studio/Tango.Core/ExtensionMethods/FrameworkElementExtensions.cs index 6e9c11b03..7539deba2 100644 --- a/Software/Visual_Studio/Tango.Core/ExtensionMethods/FrameworkElementExtensions.cs +++ b/Software/Visual_Studio/Tango.Core/ExtensionMethods/FrameworkElementExtensions.cs @@ -454,7 +454,7 @@ public static class FrameworkElementExtensions { bool isLoaded = false; - element.Loaded += (sender, e) => + element.AddHandler(FrameworkElement.LoadedEvent, new RoutedEventHandler((x, y) => { if (!isLoaded) { @@ -462,7 +462,7 @@ public static class FrameworkElementExtensions handler(element, new EventArgs()); } - }; + })); } } -- cgit v1.3.1