WPF animation and slide / drag

I am trying to create a fairly simple WPF interface, and from what I know, this should basically be possible using pure XAML.

What i know

I have a pretty general understanding of WPF so far, however I have a decent understanding of XAML.

I know or can decide how to post content in these panels. This is not the topic of this question.


What I do not know

I do not know how to animate this interface.

I am not very versed in binding, but again, this is not the topic of this issue.


The topic of this question is what would be the best way to animate panels 1-4 (the images below) so that they can be dragged (by touching) into the field of view. The number of panels here may be static for the purpose of this question.

Panels (1-4) can be shelving panels, grids, or whatever; their content is not important. It is important that the container that will contain all 4 panels. The complication in this animation is the other two containers here (Item One / TODO), as they are on their way to a smooth animation.

If this simplifies this issue, now the touch functions can be ignored, and a simple click can move the containers.

One alt text

Two alt text

+4
source share
4 answers

Why not use WPF pages? You might want to consider this one .

WPF application that allows you to perform 3D page transitions - you can use this application as the basis for creating WPF applications in which it is easy to add pages (UserControls) and switch from one to one to three types of animations: slide, flip and cube.

+3
source

I found this ( http://bot.codeplex.com/ - Zroll Scrollbar) through my own research, which still works very well.

This is the control I need.

+2
source

Try this one .

This is much easier (implement / use) than the other that I posted.

Transitionals is an environment for building and using WPF transitions that provide an easy way to switch between user interface views in a rich and animated way. Think of transitions for applications the same way you think of transitions for video editing. Wipe, Cut, Dissolve, Star, Blinds, and 3D Rotating Cube are examples of transitions supported by the Transitionals framework.

+2
source

Source: https://habr.com/ru/post/1306340/


All Articles