46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
Windows Animation Custom Interpolator Sample
|
|
|
|
|
|
Demonstrates
|
|
===============================
|
|
This sample shows how to use Windows Animation with your own Custom Interpolator. This sample uses Direct2D for rendering.
|
|
|
|
|
|
Sample Language Implementations
|
|
===============================
|
|
This sample is available in the following language implementations:
|
|
C++
|
|
|
|
|
|
Files
|
|
===============================
|
|
* CustomInterpolator.h: The implementation of the custom interpolator
|
|
* LayoutManager.h: The header file for the LayoutManager class
|
|
* LayoutManager.cpp: The implementation of the LayoutManager class
|
|
* MainWindow.h: The header file for the MainWindow class
|
|
* MainWindow.cpp: The implementation of the MainWindow class
|
|
* ManagerEventHandler.h: The implementation of the ManagerEventHandler
|
|
* Thumbnail.h: The header file for the Thumbnail class
|
|
* Thumbnail.cpp: The implementation of the LayoutManager class
|
|
* UIAnimationHelper.h: The header file for various UIAnimation helper functions
|
|
* Application.cpp: Contains the application entry point
|
|
|
|
|
|
Building the Sample
|
|
===============================
|
|
|
|
To build the sample using the command prompt:
|
|
=============================================
|
|
1. Open a Command Prompt window and navigate to the solution directory
|
|
2. Type msbuild
|
|
|
|
To run the application using the command prompt:
|
|
================================================
|
|
1. Execute CustomInterpolator.exe
|
|
|
|
To use the application:
|
|
=======================
|
|
1. Images are loaded from the Pictures Library
|
|
2. Resize the window or press the space bar and the images will arrange themselves randomly in the middle of the client area
|
|
3. Press the up or down arrow and the images will accelerate toward the top or bottom of the client area
|