I have a simple window where the user scans a barcode and you get an animation based on the barcode.
after the first animation it stops receiving the Window_KeyDown event.
The animation is triggered via code because it needs to read the barcode.
This is the storyboard.
<Storyboard x:Key="Win">
<StringAnimationUsingKeyFrames Storyboard.TargetProperty="(TextBlock.Text)" Storyboard.TargetName="txtbScan">
<DiscreteStringKeyFrame KeyTime="0:0:05" Value="Scan your barcode"/>
</StringAnimationUsingKeyFrames>
</Storyboard>
Here i call in code.
Dim win As Storyboard = DirectCast(FindResource("Win"), Storyboard)
txtbScan.Text = "Hurray you won " & GetPrize(curBarcode)
win.Begin(Me)
It looks like the animation continues and cannot receive the next input event.