![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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) |
| | 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) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Canvas does not allow drawing | Vista General | |||