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

141 questions
5
votes
1 answer

Re Arrange ListBox Items in WPF( Like windows 8 start screen tiles )

How can I re arrange list box items like windows 8 start page. I created a sample that is capable of drag and drop / re arrange items inside it. But I don't know how to implement that effect like windows 8 start screen (Like Dragging the item along…
user3064847
  • 333
  • 2
  • 8
4
votes
2 answers

Animate button from one point to another

I have an expander containing some elements along with a button. When the expander is collapsed, I would like to display the button in the expander's header for easy access. When the expander is expanded, I want the button to be part of the…
4
votes
0 answers

Animation's Completed event does not fire when animation started with DataTrigger?

My Problem: When I try to handle a DoubleAnimation's Completed even the event does not fire if the animation was started by a DataTrigger. I am starting my event with a datatrigger because it must be started from the viewmodel. I have found that…
german129
  • 237
  • 2
  • 8
4
votes
2 answers

Dragging selected Item along with the mouse in WPF

I am using the following code for performing Drag & Drop in my StackPanel Childran, XAML
StezPet
  • 2,343
  • 1
  • 24
  • 46
4
votes
2 answers

WPF panel slide in from left animation

I'm trying to get a Panel to animate a sliding in behavior in WPF. The panel with fills from the center out rather than from the left and it only animates the first time. Below is the markup for my animation.
Brian Triplett
  • 3,344
  • 4
  • 32
  • 58
3
votes
1 answer

WPF how to properly animate color changing

While it is it easy to one-off background change and it already has many answers, how can I consistently animate color changing (e.g. not once, not to single color). To give a toy example of the problem, lets say I have a Rectangle and three…
wondra
  • 2,705
  • 2
  • 22
  • 38
3
votes
1 answer

Making slide animation in wpf

I have a grid, which used as container. Grid consist of UserControl, each one has 600px height and 800px width. I want to make slide animation like presentation by switching visible controls. Here is my xaml code of mainWindow:
Viacheslav
  • 43
  • 6
3
votes
1 answer

Pause/Resume Storyboard not work

What I need to do: At the time of the event GotFocus, no event of MouseEnter and MouseLeave run. After the events LostFocus, MouseEnter and MouseLeave become active again. Given the needs, I've written the following code, but the commands for…
MONJE
  • 85
  • 11
3
votes
1 answer

How to dynamically size a rectangular path with animated stroke thickness?

I have a Rectangle and a Path defined by a RectangleGeometry:
dymanoid
  • 13,597
  • 3
  • 34
  • 59
3
votes
1 answer

'ColorAnimation' animation object cannot be used to animate property 'Background' because it is of incompatible type 'System.Windows.Media.Brush'

I'm tring to use a ColorAnimation programmatically to animate a cell, but I got this when I perform storyboard.Begin() 'System.Windows.Media.Animation.ColorAnimation' animation object cannot be used to animate property 'Background' because it is of…
advapi
  • 2,776
  • 2
  • 24
  • 52
3
votes
2 answers

How to trigger a wpf animation only if the mouse hovers for a long time?

I am new to WPF animation. I have a wpf application with 4 buttons. The 4 buttons have animations where the opacity of the button changes from 0.0 to 1.0 which gets triggered when the mouse hovers over that button. The problem I am facing is that,…
Tejus
  • 604
  • 1
  • 6
  • 18
3
votes
1 answer

WPF - EllipseGeometry animation in C# using a Storyboard

I need to scale an EllipseGeometry in C# with ScaleTransform, but it doesn't works. Here's the code: XAML:
Andrea
  • 115
  • 1
  • 1
  • 7
3
votes
1 answer

Animate button background color in XAML

I new to WPF and XAML, so I have ResourceDictionary (one button for now):
Dim
  • 3,529
  • 10
  • 67
  • 119
3
votes
2 answers

Scroll multiple image in wpf

madan
  • 753
  • 11
  • 37
2
votes
2 answers

MVVM Progress Bar EventTrigger

This is my sample code to animate progress bar during page loaded. My question is, how can i start progress bar when button click?
Tuan Zaidi
  • 345
  • 1
  • 12
1
2 3
9 10