Skip to content

Commit e9880ec

Browse files
committed
updated to v0.2.2
Added Target property and ForTarget method to KeyFrameAnimation<T> class. Reduced NuGet package size.
1 parent 855a8e6 commit e9880ec

11 files changed

+29
-7
lines changed

Diff for: CompositionExpressionToolkit.Ref/CompositionExpressionToolkit.Ref.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<AssemblyName>CompositionExpressionToolkit</AssemblyName>
1212
<DefaultLanguage>en-US</DefaultLanguage>
1313
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
14-
<TargetPlatformVersion>10.0.14332.0</TargetPlatformVersion>
15-
<TargetPlatformMinVersion>10.0.14332.0</TargetPlatformMinVersion>
14+
<TargetPlatformVersion>10.0.14388.0</TargetPlatformVersion>
15+
<TargetPlatformMinVersion>10.0.14388.0</TargetPlatformMinVersion>
1616
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
1717
<FileAlignment>512</FileAlignment>
1818
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Diff for: CompositionExpressionToolkit.Ref/CompositionExpressionToolkit.cs

+2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ public KeyFrameAnimation(Windows.UI.Composition.KeyFrameAnimation animation) { }
136136
public int IterationCount { get { return default(int); } set { } }
137137
public int KeyFrameCount { get { return default(int); } }
138138
public Windows.UI.Composition.AnimationStopBehavior StopBehavior { get { return default(Windows.UI.Composition.AnimationStopBehavior); } set { } }
139+
public string Target { get { return default(string); } set { } }
139140
public CompositionExpressionToolkit.KeyFrameAnimation<T> DelayBy(System.TimeSpan delayTime) { return default(CompositionExpressionToolkit.KeyFrameAnimation<T>); }
141+
public CompositionExpressionToolkit.KeyFrameAnimation<T> ForTarget(System.Linq.Expressions.Expression<System.Func<object>> targetExpression) { return default(CompositionExpressionToolkit.KeyFrameAnimation<T>); }
140142
public CompositionExpressionToolkit.KeyFrameAnimation<T> HavingDuration(System.TimeSpan duration) { return default(CompositionExpressionToolkit.KeyFrameAnimation<T>); }
141143
public void InsertExpressionKeyFrame(float normalizedProgressKey, System.Linq.Expressions.Expression<CompositionExpressionToolkit.CompositionLambda<T>> expression, Windows.UI.Composition.CompositionEasingFunction easingFunction=null) { }
142144
public void InsertKeyFrame(CompositionExpressionToolkit.KeyFrame<T> keyFrame) { }

Diff for: CompositionExpressionToolkit/CompositionExpressionToolkit.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<AssemblyName>CompositionExpressionToolkit</AssemblyName>
1212
<DefaultLanguage>en-US</DefaultLanguage>
1313
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
14-
<TargetPlatformVersion>10.0.14332.0</TargetPlatformVersion>
15-
<TargetPlatformMinVersion>10.0.14332.0</TargetPlatformMinVersion>
14+
<TargetPlatformVersion>10.0.14388.0</TargetPlatformVersion>
15+
<TargetPlatformMinVersion>10.0.14388.0</TargetPlatformMinVersion>
1616
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
1717
<FileAlignment>512</FileAlignment>
1818
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Diff for: CompositionExpressionToolkit/CompositionKeyFrame.cs

+20
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ public AnimationStopBehavior StopBehavior
184184
set { Animation.StopBehavior = value; }
185185
}
186186

187+
/// <summary>
188+
/// Specifies the target for the animation
189+
/// </summary>
190+
public string Target
191+
{
192+
get { return Animation.Target; }
193+
set { Animation.Target = value; }
194+
}
195+
187196
#endregion
188197

189198
#region Construction / Initialization
@@ -336,6 +345,17 @@ public KeyFrameAnimation<T> OnStop(AnimationStopBehavior stopBehavior)
336345
return this;
337346
}
338347

348+
/// <summary>
349+
/// Sets the target for the encapsulated KeyFrameAnimation object
350+
/// </summary>
351+
/// <param name="targetExpression">Expression for the target</param>
352+
/// <returns>KeyFrameAnimation&lt;T&gt;</returns>
353+
public KeyFrameAnimation<T> ForTarget(Expression<Func<object>> targetExpression)
354+
{
355+
Animation.Target = CompositionExpressionEngine.ParseExpression(targetExpression);
356+
return this;
357+
}
358+
339359
#endregion
340360
}
341361
}

Diff for: CreateNuGetPackage.cmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
@echo.
3131
@echo ===== Creating NuGet package =====
3232
@echo.
33-
@NuGet\nuget.exe pack NuGet\CompositionExpressionToolkit.nuspec
33+
@nuget.exe pack NuGet\CompositionExpressionToolkit.nuspec
3434

3535
@popd

Diff for: NuGet/CompositionExpressionToolkit.nuspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>CompositionExpressionToolkit</id>
5-
<version>0.2.1.0</version>
5+
<version>0.2.2.0</version>
66
<title>CompositionExpressionToolkit</title>
77
<authors>Ratish Philip</authors>
88
<owners>Ratish Philip</owners>
@@ -11,7 +11,7 @@
1111
<iconUrl>https://cloud.githubusercontent.com/assets/7021835/15062082/66ee5d20-12f1-11e6-9cd0-e4ba150f6161.png</iconUrl>
1212
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1313
<description>A Toolkit containing a collection of Extension methods and Helper classes which make it easier to use Windows.UI.Composition features.</description>
14-
<releaseNotes>Added KeyFrameAnimation&lt;T&gt; - Generic class to encapsulate all the animation classes deriving from KeyFrameAnimation.</releaseNotes>
14+
<releaseNotes>Added Target property and ForTarget method to KeyFrameAnimation&lt;T&gt; class. Reduced NuGet package size.</releaseNotes>
1515
<copyright>Copyright 2016 Ratish Philip</copyright>
1616
</metadata>
1717
</package>

Diff for: NuGet/ref/uap10.0/CompositionExpressionToolkit.dll

0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Diff for: NuGet/nuget.exe renamed to nuget.exe

File renamed without changes.

0 commit comments

Comments
 (0)