2011-02-01, 14:32
Hi there,
I'm trying to make an animation like this: when I press a key, fire up the WindowOpen animation defined for the whole window.
I tried this to define a conditional animation for the window:
<animation effect="slide" time="300" start="1280,0" condition="Control.HasFocus(500)">Conditional</animation>
Then, I created an invisible button (with Id 500) which get focus when I press the key. I did that with setFocusId(500) somewhere in the code.
However, this doesn't work. Any idea on how to do this?
Thanks
I'm trying to make an animation like this: when I press a key, fire up the WindowOpen animation defined for the whole window.
I tried this to define a conditional animation for the window:
<animation effect="slide" time="300" start="1280,0" condition="Control.HasFocus(500)">Conditional</animation>
Then, I created an invisible button (with Id 500) which get focus when I press the key. I did that with setFocusId(500) somewhere in the code.
However, this doesn't work. Any idea on how to do this?
Thanks