Answer the question
In order to leave comments, you need to log in
How to create custom controls and animations in UWP WPF?
Tell me how you can create your own complex controls and animations for them. For example, create an animation of the appearance of the "blinds" image. This is the simplest example. Interested in the ability to draw their own controls and special animations that are not done through transform.
Answer the question
In order to leave comments, you need to log in
You can try throwing a picture into the control to cut it into strips, and by command or property, start moving them with animation, at the end, replace the strips with the original image
Fantasy and hardcore.
I'm not joking, without imagination and "hilevel of mathematics + code + knowledge of the platform" it will be difficult to do something other than standard animations (like shift/rotate/transparency).
* Blinds can be done, for example, using transparency masks in WPF. (70% fantasy and 30% simple code)
* Or you can write a shader code that specially rasterizes the image with "blinds" (100% hardcoding)
in general, there are examples with graphic shaders on the net.
* You can simply "hack" the system by making a Path-shape that will be blinds by setting its background color and with a sufficiently fast animation (using pure XAML) the user will not notice the deception (100% fantasy)
* You can write a mathematically correct algorithm in pure C # using several Image blocks in XAML showing part of the image shifted in certain proportions in the sum of the blinds (50/50)
animation only code for the ancient 3.5 framework, the code will work under UWP too
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question