WPF storyboard object access.
Posted
by Guru
on Stack Overflow
See other posts from Stack Overflow
or by Guru
Published on 2010-04-04T12:17:05Z
Indexed on
2010/04/04
12:23 UTC
Read the original article
Hit count: 394
Hey,
I'm new to silverlight and wpf programming
I've just created a simple storyboard in silverlight which increases height and width of a button.
As I wanted, I wrote this code so that whenever I move cursor on the button storyboard begins.
here is the code used for silverlight.
private void button_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { if(Storyboard1.GetCurrentState()!=ClockState.Active) Storyboard1.Begin(); }
Everything is fine in above scenario as far as I use silverlight.
But now I wanted to use the same functionality in WPF.
But the problem I faced is that in WPF button click event handler I can't access the Storyboard1 object.
Please help me to access the storyboard object in event handler.
© Stack Overflow or respective owner