Questions tagged [doubleanimation]

Use this tag for questions related to DoubleAnimation .Net framework class for animating the value of a Double.

DoubleAnimation is a .Net framework class for animating the value of a Double property between two target values using linear interpolation over a specified Duration.

77 questions
0
votes
1 answer

C# Storyboard animation doesn't reset position

I have generated a XAML file which contains a scrollviewer with studentnames and a graph. When I click on one of these names, the respective lines will fly in (grow from small to correct size aswell) from the top left and stop at the right position…
0
votes
1 answer

How to shrink image to disappear gradually in WPF DoubleAnimation

So, I'm making an application and I want to gradually (over the course of a few seconds) shrink an image control until it disappears. So, I basically bound a ScaleTransform with a DoubleAnimation, but it happens instantly. Here is my…
Luke Dinkler
  • 731
  • 5
  • 16
  • 36
0
votes
1 answer

Sticky WPF window

I am trying to create Sticky WPF window. If window nearer left stick to left or stick right if nearer to right else stick to top Below the code I am using, private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) …
Ashish Sapkale
  • 540
  • 2
  • 13
0
votes
1 answer

XAML DoubleAnimation not fully rending items

I'm trying to create a scrolling news feed purly using XAML and am having some trouble with the feed being cut off. right now I'm just using some fake news headlines in my XmlDataProvider, but they will be coming from an RSS…
EMAW2008
  • 289
  • 2
  • 15
0
votes
1 answer

SetValue method doesn't work after DoubleAnimation

I have this code: public partial class MainWindow : Window { Storyboard st_common = new Storyboard(); DoubleAnimation anim1 = new DoubleAnimation(); public MainWindow() { InitializeComponent(); …
0
votes
0 answers

Trouble with DoubleAnimation

I have a problem when I try to animate these toggle button, because when you get to press random buttons, does not stop the animation and that means that I will not close the open panel but if you move the positions of the buttons that are more it…
0
votes
0 answers

WPF PathGeometry is displaced in DoubleAnimationUsingPath

so i'm new to WPF and haven't the faintest idea why this doesn't work. I wanna do a DoublePathAnimation on a Ellipse. So i used a PathObject to just simple find out which PathGeometry Figures i need.
0
votes
1 answer

WPF, Property does not return value to the binding

So, I have a project with a scrolling text (marqee) that rotates over a string array. And I want it to change the string value after 20 seconds of each animation iteration. There is a problem though, the property(ScrollingText) that uses the…
0
votes
1 answer

c# wpf change DoubleAnimation "To" when load (in )

I use this code to animate an Image from left to right but I want To="100" to window width how to change DoubleAnimation "To" when window load or resize ? xaml :
user4254398
  • 373
  • 3
  • 12
0
votes
1 answer

How to change duration of DoubleAnimation by Binding?

I have an ellipse like this:
t4nhpt
  • 5,264
  • 4
  • 34
  • 43
0
votes
0 answers

Make the program wait for animations in a foreach loop

So what I have is a canvas with various images. What I need is to trigger a animation for one such image in a foreach loop. The problem is the program only runs the last animation of the loop. Is there a way to make the foreach loop pause while the…
0
votes
2 answers

WPF TextBlock fade in left to right

I have a Textblock which animates when the bound Textis changing:
redstripes
  • 87
  • 1
  • 9
0
votes
1 answer

How to stop DoubleAnimation on mouseover event?

I have two canvases and a textblock with name tbmarquee, on window load it animates from top to bottom, but i want to stop when i over the mose on it, and when i click it goes to the link, how to do it ? void Window1_Loaded(object sender,…
nizam uddin
  • 341
  • 2
  • 6
  • 15
-1
votes
1 answer

WPF and MVVM: Use RotateTransform and DoubleAnimation to move an object along circular path

I'm relatively new to WPF animations. I would like to have an object (a simple circle for example) move around a circular path in 10 degree increments. The following example is tantalizingly close: WPF circular moving object See the answer by…
Dave
  • 8,095
  • 14
  • 56
  • 99
-1
votes
1 answer

Dynamically Changing TargetName DoubleAnimation c# xaml

im searching for a solution to change the TargetNameproperty in my code behind. in total i need 9 different images / animations to happen. in the example below there are just 2. here is the XAML
Sander Bloem
  • 15
  • 1
  • 6