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
3
votes
2 answers

Scroll multiple image in wpf

madan
  • 773
  • 13
  • 38
3
votes
4 answers

Animate width from right to left

I want to animate my window coming in from the right edge of the screen. This is my xaml
Robby Smet
  • 4,649
  • 8
  • 61
  • 104
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
  • 343
  • 1
  • 14
2
votes
1 answer

One Storyboard for multiple triggers

Context: I have two Storyboards in my UserControl. One of them is for sliding the UserControl in and one is for sliding it out. All I'm doing for the slide in/out is setting the margin to a negative value for sliding out and to zero for sliding…
Drewfyre
  • 21
  • 1
2
votes
1 answer

WPF textblock animation

How can I achieve THIS type of animation? I'm very new to WPF. I tried with DoubleAnimation in WPF but not achieved the target. Animation should be happen when I update the score like in video it's happening when score is updating from 17 to 23.
waghekapil
  • 321
  • 1
  • 5
  • 22
2
votes
2 answers

Why is this translation animation not working?

I have the following animation that on some event should cause a button to move from left to right:
Ivan
  • 1,081
  • 2
  • 17
  • 43
2
votes
0 answers

name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'

Just yesterday in very similar situation this code was working on the exactly the same machine.. Today it throws an exception.. "'SelectedContentBorder' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'." Here is…
52hertz
  • 342
  • 4
  • 16
2
votes
1 answer

WPF - Animations in dynamically loaded XAML

I have standalone XAML files that are loaded dynamically into a MainWindow. The XAML files contain animation(s). It's simple to load XAML but what is the right way to get animations to work once the XAML is loaded. This is my test code which works…
2
votes
2 answers

WPF loading animation for a UI process

In my WPF application I have an About Box with the application info and version. When this window is loaded it takes a little bit of time, especially if its the first time it's being opened. I'm trying to implement a loading animation while the…
Vito
  • 1,580
  • 1
  • 17
  • 32
2
votes
1 answer

WPF stop and reverse Storyboard animation when new animation starts

I have 2 DataTrigger that animates the background color of a button (with reverse), this part works fine. The problem is that when the 2 triggers are fired in overlapping times, the first trigger fired does not reverse the color, when the second…
Guy Levin
  • 1,230
  • 1
  • 10
  • 22
2
votes
0 answers

How to animate Adding & Removal in ListView/Box?

I am trying to understand how animation works in WPF with StoryBoards. So far I have managed the following : creating a ListView with custom items and resources binding ; using ItemContainerStyle in order to make sure each item takes all the width…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
2
votes
2 answers

How to animate the Counter value in UI to increase the value in C# WPF?

I want to develop an application in WPF, and same in Windows Phone 8.1. Where I want to increase the value of a variable from 100 to 200, from 200 to 300 and go on. This is a score of the game. Now I want to animate this in the UI. I have written a…
Debhere
  • 1,055
  • 2
  • 19
  • 41
2
votes
1 answer

WPF Rectangle Triggers when Visible for DoubleAnimation StoryBoard

I have a DoubleAnimation which fades in/out a Rectangle in WPF
NotMe
  • 745
  • 2
  • 7
  • 26
2
votes
1 answer

WPF Animation (changing multiple properties of single element at the same time)

I need to animate multiple properties of one ui element at the same time. For example, decreasing width and height of windows synchronously. Any idea? DoubleAnimation widthAnimation = new DoubleAnimation { To =…
Matrix
  • 125
  • 2
  • 6
2
votes
2 answers

WPF Waiting for animation to end before handling event

Suppose I have a circular button on a screen that I want to animate the effect of tapping it on. Initially the button (ellipse) background (Fill) is transparent and the border brush (the outline) has some colour and thickness to it to make it look…
test-in-prod
  • 498
  • 5
  • 19
1
2
3
10 11