//添加border BorderEagleBorder= new Border(); EagleBorder.Width=232; EagleBorder.Height=181; EagleBorder.BorderThickness= new Thickness(2); EagleBorder.BorderBrush= new SolidColorBrush(Colors.Blue); //添加Image ImageEagleImage= new Image(); EagleImage.Source=
//添加border
Border EagleBorder = new Border();
EagleBorder.Width = 232;
EagleBorder.Height = 181;
EagleBorder.BorderThickness = new Thickness(2);
EagleBorder.BorderBrush = new SolidColorBrush(Colors.Blue);
//添加Image
Image EagleImage = new Image();
EagleImage.Source= new BitmapImage( new Uri( "../images/EagleEye.png",UriKind.Relative));
//添加iamge的border
EagleBorder.Child = EagleImage;
//添加
this.EagleCanvas.Children.Add(EagleBorder);
Border EagleBorder = new Border();
EagleBorder.Width = 232;
EagleBorder.Height = 181;
EagleBorder.BorderThickness = new Thickness(2);
EagleBorder.BorderBrush = new SolidColorBrush(Colors.Blue);
//添加Image
Image EagleImage = new Image();
EagleImage.Source= new BitmapImage( new Uri( "../images/EagleEye.png",UriKind.Relative));
//添加iamge的border
EagleBorder.Child = EagleImage;
//添加
this.EagleCanvas.Children.Add(EagleBorder);