From ebf1a18265093c7773c135b5a5c606e0ec1802fd Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 17 Jul 2017 10:25:17 +0200 Subject: [PATCH] NuGet package info updated, some comments added --- UICompositionAnimations/Lights/LightsSourceHelper.cs | 2 ++ UICompositionAnimations/Properties/AssemblyInfo.cs | 2 +- UICompositionAnimations/UICompositionAnimations.nuspec | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/UICompositionAnimations/Lights/LightsSourceHelper.cs b/UICompositionAnimations/Lights/LightsSourceHelper.cs index 348af00..d51d6b9 100644 --- a/UICompositionAnimations/Lights/LightsSourceHelper.cs +++ b/UICompositionAnimations/Lights/LightsSourceHelper.cs @@ -55,6 +55,7 @@ public static void SetIsLightsContainer(UIElement element, bool value) DependencyProperty.RegisterAttached("IsLightsContainer", typeof(bool), typeof(LightsSourceHelper), new PropertyMetadata(default(bool), OnIsLightsContainerPropertyChanged)); + // Private dictionary to keep track of the added pointer event handlers private static readonly IDictionary HandlersMap = new Dictionary(); private static void OnIsLightsContainerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) @@ -92,6 +93,7 @@ private static void OnIsLightsContainerPropertyChanged(DependencyObject d, Depen } else { + // Remove the lights and the custom pointer handlers if (!HandlersMap.TryGetValue(@this, out ControlAttachedHandlersInfo info)) throw new InvalidOperationException("Error retrieving the pointer handlers info on the current control"); HandlersMap.Remove(@this); diff --git a/UICompositionAnimations/Properties/AssemblyInfo.cs b/UICompositionAnimations/Properties/AssemblyInfo.cs index bb13d2c..6b3c758 100644 --- a/UICompositionAnimations/Properties/AssemblyInfo.cs +++ b/UICompositionAnimations/Properties/AssemblyInfo.cs @@ -23,6 +23,6 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.9.2.0")] +[assembly: AssemblyVersion("2.10.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: ComVisible(false)] \ No newline at end of file diff --git a/UICompositionAnimations/UICompositionAnimations.nuspec b/UICompositionAnimations/UICompositionAnimations.nuspec index 2a5fb55..754b6d4 100644 --- a/UICompositionAnimations/UICompositionAnimations.nuspec +++ b/UICompositionAnimations/UICompositionAnimations.nuspec @@ -2,14 +2,14 @@ Sergio0694.UWP.UICompositionAnimations - 2.9.2.0 + 2.10.0.0 UICompositionAnimations A wrapper UWP PCL to work with Windows.UI.Composition and XAML animations, and Win2D effects Sergio Pedri Sergio Pedri https://github.com/Sergio0694/UICompositionAnimations false - Bug fixes, new ExpressionAnimation parameter option added + Added LightsSourceHelper class, new API to remove the added pointer handlers Copyright 2017 uwp composition animations xaml csharp windows winrt universal app ui win2d graphics