GIF アニメーションを以下のコードで動作させるにはどうすればよいですか? 問題は、画像がいくつかの異なる画像に応じて変化することです。
WPF:
<Image Source="{Binding ElementName=L, Path=Image}" Height="400" Width="600" Stretch="None" />
コード ビハインド: public readonly DependencyProperty ImageProperty;
public ImageSource ImageStatus
{
get { return (ImageSource)GetValue(ImageProperty); }
set { SetValue(ImageProperty, value); }
}
Image = new BitmapImage(new Uri("/L;component/Images/test.gif", UriKind.Relative));
編集:
http://eladm.wordpress.com/2009/04/02/animated-gif-support-behavior/