Questions tagged [wpf-animation]

Animation is an illusion that is created by quickly cycling through a series of images, each slightly different from the last. The brain perceives the group of images as a single changing scene. In film, this illusion is created by using cameras that record many photographs, or frames, each second. When the frames are played back by a projector, the audience sees a moving picture.

Windows Presentation Foundation (WPF) provides a powerful set of graphics and layout features that enable you to create attractive user interfaces and appealing documents. Animation can make an attractive user interface even more spectacular and usable. By just animating a background color or applying an animated Transform, you can create dramatic screen transitions or provide helpful visual cues.

Reference

159 questions
2
votes
1 answer

WPF Animate double property changes

I'm trying to find a generic way to run an animation each time a property of type double is updated. This has to be single solution which works for all double values. It means that I don't want to write a proprietory AttachedProperty for each…
Uri Abramson
  • 6,005
  • 6
  • 40
  • 62
2
votes
1 answer

can't stop storyboard animation, i can only begin it

i'm trying to manage an animation with a storyboard, it'a blinking label and to achive this effect i have used this code (with animation i preefer to work only in code behind): I declare my story board; public partial class Example: Page { …
user31929
  • 1,115
  • 20
  • 43
2
votes
2 answers

Setting manual control properties doesn't work before an animation in WPF

I have an image in a Canvas, but when I use DoubleAnimation to move it and then use Canvas.SetLeft(image), the method is ignored, the only way to move it again is with animations. What's wrong with Canvas.SetLeft(control)? Here is an explanation…
FukYouAll
  • 111
  • 1
  • 3
  • 15
2
votes
1 answer

WPF Validation.ErrorTemplate Background Object

I want to replace the normal behaviour of Validation.ErrorTemplate. I want to put a background border object (filled with red color) behind my own UserControl and then apply a simple color animation to blink it. I tried this in my implicit control…
LoxLox
  • 977
  • 9
  • 16
2
votes
1 answer

Animation wpf - Show for n seconds then fade out

I have a storyboard with one DoubleAnimation this animates the opacity from 1 to 0 in one second:
Tobias Moe Thorstensen
  • 8,861
  • 16
  • 75
  • 143
2
votes
2 answers

WPF How to skip animation to end if a boolean value in ViewModel is true?

I have a screen with animation in my WPF application. I need the animation to run only onceper user session. This means that if a user sees the screen with the animation the first time, it would play, but when the user comes back to it it will be in…
Uri Abramson
  • 6,005
  • 6
  • 40
  • 62
2
votes
1 answer

Auto reverse to original color only on mouse leave

I'm using WPF in .Net framework 4. I created a button with background color X. I created a style for the button that on IsMouseOver start ColorAnimation that change the background color to Blue. In case that the IsMouseOver is false(the mouse is…
user436862
  • 867
  • 2
  • 15
  • 32
1
vote
1 answer

How can I change the animation speed?

This is the code for the animation: private void Pass_GotFocus(object sender, RoutedEventArgs e) { DoubleAnimation doubleAnimation = new() { Duration = new(TimeSpan.FromMilliseconds(800)), From = 0, To = 200 }; …
Zozo
  • 81
  • 2
  • 8
1
vote
1 answer

ColorAnimation with LinearGradientBrush

I am trying to make an animated custom control with two different styles being displayed depending on a boolean Property. I have been able to move elements back and forth as well as changing colors to plain colors, but I would like to be able to use…
Angevil
  • 469
  • 3
  • 10
1
vote
2 answers

WPF Pages Slide

I have an application that is made using WPF, i have multiple pages and a form that contains a frame, and i load the pages on a frame, and each page has back and next buttons. what i want to do is to animate the navigation of the pages on the frame…
ibr
  • 319
  • 1
  • 5
  • 19
1
vote
1 answer

How can I Animate Image (Change the Position of any Image on Grid) By Clicking a Shape?

I wanna Move or Change position of an Image by clicking Another component. I know How to change an Image location by clicking it. This code shows.
user9308412
1
vote
0 answers

WPF Choppy / Jittery Animation related to window size

I'm trying to create a slide out menu for my WPF Application, however I've noticed that the animation gets jittery / laggy depending on the size of the screen. I've tried googling but haven't really found any solutions and nobody else even mentions…
1
vote
1 answer

Is it possible to rotate Viewport3D around any of the three axes?

I know that a ModelVisual3D can be rotated around any axis via AxisAngleRotation3D, but is it possible to do the same with Viewport3D that contains 9 ModelVisual3Ds, so they are rotated together as if they are one object.. for example I can do this…
mshwf
  • 7,009
  • 12
  • 59
  • 133
1
vote
1 answer

How to create a smooth animated text marquee?

I know that there are lot of different threads about horizontal text animation/text scrolling, but unfortunately none of them give smooth scrolling with repeatable text. I have tried double/thickness animation using various WPF controls containing…
adhiman
  • 113
  • 1
  • 7
1
vote
2 answers

WPF smooth animations

I'm trying to animate a grid's width using DoubleAnimationUsingKeyFrames. I already know how to make a simple linear animation, but what I'm trying to achieve is a smooth movement that speeds up when it starts than slows down at the end. Right now…
Lázár Zsolt
  • 685
  • 8
  • 29
1 2
3
10 11