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
1
vote
1 answer

WPF DoubleAnimation from CodeBehind

In the MainWindow.xaml I have this: I had Percentage bound to a value I get from further outside. The problem is: it sets the…
ecth
  • 1,215
  • 1
  • 16
  • 33
1
vote
1 answer

Change Duration of DoubleAnimation Control by Slider

I'm trying to change duration of DoubleAnimation control by Slider's value but it does not get effect. I don't know why? Here's my code: XAML:
Ringo
  • 3,795
  • 3
  • 22
  • 37
0
votes
1 answer

How to count up by using Double Animation instead of by using Timer

The following code is counting up starting from 1 to forever by using Timer. XAML codes:
0
votes
1 answer

WPF Expander on two dependent controls

I didn't quite understand how Expander works, I am trying to expand the green Grid so that the yellow Grid (including the red one) moves to the left according to the expansion of the green Grid. Currently, the situation is that the green Grid…
Ohad Cohen
  • 597
  • 4
  • 9
0
votes
0 answers

Double Animation from 0 to auto

I'm looking for a solution to my WPF project. I've an User Control with 2 different widget inside. The first one animates the second with this function and the animation works fine: private void expandTable(UIElement expandleft) { …
Shhilvia
  • 3
  • 2
0
votes
1 answer

WPF stop an animation when it's not visible on the screen

I'm using AvalonEdit to create an ANSI terminal that properly color codes and implements some styles like underline and reverse (it works wonderfully for that, this isn't a full VT100 kind of thing). In AvalonEdit a DocumentColorizingTransformer to…
b.pell
  • 3,873
  • 2
  • 28
  • 39
0
votes
1 answer

How can I create a delay during a DoubleAnimation when using AutoReverse?

I have an animation which moves a grid to a specific place and then automatically goes back using AutoReverse. But since it's instant the user cannot read the message inside of it. How can I put a -for example- 5 seconds delay in the animation Here…
David Moll
  • 117
  • 10
0
votes
1 answer

Button scaled boundries(conditions)

Everyone, I tried to scale button's size, code works fine, if I click only once, but if I click multiple times the button in a row, button can't return its original size. Here is code: private void ButtonSearchMedication_OnClick(object sender,…
P.Roger
  • 79
  • 6
0
votes
0 answers

i want to load an event on loading each dot but the event is called before the page appears

I'm new to WPF and using the loading animation i want to load the event on the dot changed of animation I tried a lot but the event loads before the window appears.
0
votes
0 answers

How to "shift" a doubleanimation used for control position?

I am trying to let a WPF control move over a canvas. I'm doing that using two DoubleAnimations, set to the exact positions. Now I'm having a function that is supposed to move/"shift" the entire thing by an X and a Y value. The animation should move…
0
votes
0 answers

DoubleAnimation does not update Canvas.TopProperty/LeftProperty

I have a map represented by a Canvas. This map is showing some Cities which have their Top and Left properties stored in an City.Y and a City.X properties Now I'm trying to move an object from a city to another one. I have this method : private void…
M. Ozn
  • 1,018
  • 1
  • 19
  • 42
0
votes
1 answer

WPF MediaElement Opacity is not set after executing Storyline

I'm using DoubleAnimation and Storyboard to control Opacity of MediaElement. The animation itself works fine, but if I call Disappear and playVid after several seconds, the Opacity of the player remains 0! What's the problem? public void…
JustLogin
  • 1,822
  • 5
  • 28
  • 50
0
votes
1 answer

Why XAML defined animation causes System.InvalidOperationException

I need define simple animation in the XAML (without code behind), that must rotate the background image of button by changing the bounded boolean property. I have a button in the XAML:
Aave
  • 548
  • 1
  • 5
  • 15
0
votes
1 answer

Why is the Display Setting for "Scaling" and the use of more than 1 monitor causing my WPF app window to animate in a different area on my monitor?

I am currently working on a WPF application that lives on the right side of the primary monitor. It starts as a tab and when clicked, slides off screen and then slides back out as a form to fill out. The issue that I am facing is that when the…
Siaka M
  • 1
  • 3
0
votes
1 answer

wpf FrameworkElement.width Animation

I put my rectangle on the Canvas at the wpf. We gave doubleAnimation using "FrameworkElement.With" to this rectangle. If you try to change the rectangle width after completing the animation, it does not change. Can you guess why?