![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Canvas.SetTop() doesn't work after use of a Storyboard I'm having problems using Canvas.SetTop() after I've animated a storyboard. Here's what happens: On the MouseMove event I'm relocating a Rectangle... In response to another event I want to animate the rectangle using a storyboard, then restore the functionality of the mousemove event. The MouseMove event is working fine at setting the location of the rectangle, but after using a storyboard to animate the rectangle, the Canvas.SetTop() method has no effect on the location of the rectangle. Even when the storyboard animation is complete. It's like after using a storyboard, I cannot use Canvas.SetTop() to relocate the rectangle. Any clue how to make Canvas.SetTop() work again after using a storyboard? Thanks, - Ben Friedland |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Canvas.SetTop() doesn't work after use of a Storyboard Are you animating the Canvas.Top property? This post on LearnWPF.com might help to explain the issue: http://learnwpf.com/Posts/Post.aspx?...5-7eaf0c48ec91 - Doug <ben174@gmail.com> wrote in message news:1161025446.895747.136930@m73g2000cwd.googlegroups.com... > I'm having problems using Canvas.SetTop() after I've animated a > storyboard. Here's what happens: > > On the MouseMove event I'm relocating a Rectangle... In response to > another event I want to animate the rectangle using a storyboard, then > restore the functionality of the mousemove event. The MouseMove event > is working fine at setting the location of the rectangle, but after > using a storyboard to animate the rectangle, the Canvas.SetTop() method > has no effect on the location of the rectangle. Even when the > storyboard animation is complete. It's like after using a storyboard, I > cannot use Canvas.SetTop() to relocate the rectangle. > > Any clue how to make Canvas.SetTop() work again after using a > storyboard? > > Thanks, > - Ben Friedland > |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: Canvas.SetTop() doesn't work after use of a Storyboard Thank you, Doug. That article answered the question. I needed to set the FillBehavior property to "Stop" so it wouldn't hold the last frame. - Ben Friedland Douglas Stockwell wrote: > Are you animating the Canvas.Top property? > > This post on LearnWPF.com might help to explain the issue: > http://learnwpf.com/Posts/Post.aspx?...5-7eaf0c48ec91 > > - Doug > > <ben174@gmail.com> wrote in message > news:1161025446.895747.136930@m73g2000cwd.googlegroups.com... > > I'm having problems using Canvas.SetTop() after I've animated a > > storyboard. Here's what happens: > > > > On the MouseMove event I'm relocating a Rectangle... In response to > > another event I want to animate the rectangle using a storyboard, then > > restore the functionality of the mousemove event. The MouseMove event > > is working fine at setting the location of the rectangle, but after > > using a storyboard to animate the rectangle, the Canvas.SetTop() method > > has no effect on the location of the rectangle. Even when the > > storyboard animation is complete. It's like after using a storyboard, I > > cannot use Canvas.SetTop() to relocate the rectangle. > > > > Any clue how to make Canvas.SetTop() work again after using a > > storyboard? > > > > Thanks, > > - Ben Friedland > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Canvas does not allow drawing | PhredBear | Vista General | 2 | 08-13-2008 02:07 PM |
| Disposable Canvas? | Jon Davis | Avalon | 26 | 05-21-2007 09:35 AM |
| Focusable Canvas | =?Utf-8?B?Sm9obiBEdW5u?= | Avalon | 1 | 07-31-2006 03:30 PM |
| Canvas.GetLeft is NaN | NetronProject@gmail.com | Avalon | 1 | 06-07-2006 06:00 PM |
| 3D, Canvas, and Databinding | Christopher Bennage | Avalon | 5 | 05-31-2006 02:34 PM |