Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Canvas.SetTop() doesn't work after use of a Storyboard

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 10-16-2006   #1 (permalink)
ben174@gmail.com
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 SpecsSystem Spec
Old 10-16-2006   #2 (permalink)
Douglas Stockwell
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 SpecsSystem Spec
Old 10-17-2006   #3 (permalink)
ben174@gmail.com
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 SpecsSystem Spec
Closed Thread

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


Update your Vista Drivers Update Your Vista Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008
Page generated in 0.26095 seconds with 10 queries