Skip to content

Commit

Permalink
NuGet package info updated, some comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 17, 2017
1 parent 76171bc commit ebf1a18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions UICompositionAnimations/Lights/LightsSourceHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UIElement, ControlAttachedHandlersInfo> HandlersMap = new Dictionary<UIElement, ControlAttachedHandlersInfo>();

private static void OnIsLightsContainerPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion UICompositionAnimations/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
4 changes: 2 additions & 2 deletions UICompositionAnimations/UICompositionAnimations.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<package >
<metadata>
<id>Sergio0694.UWP.UICompositionAnimations</id>
<version>2.9.2.0</version>
<version>2.10.0.0</version>
<title>UICompositionAnimations</title>
<description>A wrapper UWP PCL to work with Windows.UI.Composition and XAML animations, and Win2D effects</description>
<authors>Sergio Pedri</authors>
<owners>Sergio Pedri</owners>
<projectUrl>https://github.com/Sergio0694/UICompositionAnimations</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>Bug fixes, new ExpressionAnimation parameter option added</releaseNotes>
<releaseNotes>Added LightsSourceHelper class, new API to remove the added pointer handlers</releaseNotes>
<copyright>Copyright 2017</copyright>
<tags>uwp composition animations xaml csharp windows winrt universal app ui win2d graphics</tags>
</metadata>
Expand Down

0 comments on commit ebf1a18

Please sign in to comment.