拖拽一个图片a.jpg到项目中,不要做任何更改(此时生成操作显示为Resource,请不要更改)
XAML代码为:<Image Source="a.gif"/>请问怎么转换成C#代码?
 Image img=new Image();
img.Source=....