windows store apps - WinRT - My animation doesn't seem to run -


I have written a control that creates a star formation, the configuration of the number of digits and length of each point through the dependency properties is . I can tie them in slider controls and do all this work.

Now I have written a behavior that will put the star control in the visual tree of a loaded control, and then to disappear from the animation star in the code and disappear from a cartoon flash.

My animation has not run Storyboard The event containing the fire is but the dependency property is never killed after its initial setting when a breakpoint page is loaded in the handler that changes for animated.

I am using some of the double animation examples.

(This Q / AI solves it after 3 hours)

You must set the EnableDependentAnimation property on your DoubleAnimation s from MSDN:

You create all custom animations in a Windows runtime app by default If the animation system determines that the animation may cause poor performance in your UI, then the animation system can run. Animation where the system determines that the display effect can be, they are called dependent animations. It is up to you because your animation timepiece is working directly against the UI thread, whichever active user inputs and other updates are attempting to implement runtime changes in YouTube. A dependent animation which is consuming extensive system resources on the UI thread, in some cases the application can show unresponsive if your animation causes a layout change or otherwise has the ability to affect the display on the UI thread, then you Animation needs to be explicitly enabled to run it. This is the EnableDependentAnimation property on specific animation classes. See dependent and independent animations for more information.

Highly searchable. Fortunately, you had chosen RTFM on this day, otherwise you could be ready to write your own timers and things so that all other tasks could be emphasized on clever star control, which is not wasted.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -