我需要綁定到故事板,但我不能確定如何。我有綁定工作在另一個控制,但似乎無法讓它與這一個工作。你能幫我嗎,這可能嗎?如何綁定故事板動畫中的圖像
我怎麼能有代替此XAML
<Storyboard x:Key="CandleStoryboardXaml" RepeatBehavior="Forever">
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CandleImage" Storyboard.TargetProperty="Source">
<DiscreteObjectKeyFrame KeyTime="0:0:0.50" Value="/images/candle_01.jpg" />
<DiscreteObjectKeyFrame KeyTime="0:0:0.100" Value="/images/candle_02.jpg" />
<DiscreteObjectKeyFrame KeyTime="0:0:0.150" Value="/images/candle_03.jpg" />
<DiscreteObjectKeyFrame KeyTime="0:0:0.200" Value="/images/candle_04.jpg" />
<DiscreteObjectKeyFrame KeyTime="0:0:0.250" Value="/images/candle_05.jpg" />
...
</ObjectAnimationUsingKeyFrames>
</Storyboard>`
到這樣的事情
<Storyboard x:Key="CandleStoryboardXaml" RepeatBehavior="Forever">
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CandleImage" Storyboard.TargetProperty="Source">
<DiscreteObjectKeyFrame Value="{Binding SourceItem}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
嗨科林好,我一直在努力的是,來到另一個障礙我這裏有一個問題[鏈接](http://stackoverflow.com/questions/9923067/how-to-use-圖像存儲在一個孤立存儲的故事板動畫),我可以將圖像綁定到列表框,但是當我使用獨立存儲來獲取圖像在故事板中迭代時,它不起作用爲了我。我不知道如何在獨立存儲中打開多個圖像。 – 2012-03-30 15:48:56