8,707
社区成员




public MainPage()
{
InitializeComponent();
AnimatedImage img = new AnimatedImage();//gif显示控件
img.Name = "Img_0";
//数据源对象
BitmapImage image1 = new BitmapImage(new Uri("aa.gif", UriKind.RelativeOrAbsolute));
img.Source = image1;
img.SetValue(Grid.RowProperty, 0);
gird1.Children.Add(img);
}
AnimatedImage img = new AnimatedImage();
ImageTools.Image imgt = new ImageTools.Image();
imgt.UriSource = new Uri(sourcepath, UriKind.Relative);
img.Source = imgt;