WPF Image Slide with Animation

HoneyBee 186 Reputation points
2022-03-29T08:15:59.207+00:00

I'm preparing an ImageViewer which is rather a bit unusual.

I have many images prepared in a specific folder.

when the program starts
Load the first one of these images
It is used as the background image of InkCanvas.

And while the user presses the Left or Right key on the keyboard, the image slides in the corresponding direction and the next image is called.

Images should slideshow (including animations) continuously sideways as long as the keyboard is held down.
When you finally release the keyboard (KeyUp), the slide stops.

I want to call the event that finally loads the image once again when the last slide is stopped (KeyUp).

Can you help me with some simple ideas and samples?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,801 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 86,316 Reputation points
    2022-03-29T09:02:53.31+00:00

    You can adapt the FlipView control (Flip view)
    Either with XAML Island to embed the original control or by using other versions from Google, like WPF FlipView

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.