level 1
贴吧用户_7bWXy12
楼主
this.grid_main.Children.Add(canvas_board);
canvas_board.Margin = new Thickness(0, 0, 0, this.Height / 2);
//canvas_board.Background = Brushes.Gray;
left = this.Width / 100 * 5;
top = top = this.Height / 100 * 8;
images = new Image[ls_images.Count];
width = this.Width / 100 * 20;
height = this.Width / 100 * 20;
for (int i = 0; i < images.Length; i++)
{
Image image = new Image();
this.canvas_board.Children.Add(image);
image.Stretch = Stretch.Fill;
image.Width = width;
image.Height = height;
image.SetValue(Canvas.TopProperty, top);
image.SetValue(Canvas.LeftProperty, 0.0);
image.Source = ls_images[i];
images[i] = image;
}
写了个图片跑马灯想优化一下外观,但是不会弄样式小白一枚,想在这个image基础上加个border圆角边框怎么整?
2020年04月28日 02点04分
1
canvas_board.Margin = new Thickness(0, 0, 0, this.Height / 2);
//canvas_board.Background = Brushes.Gray;
left = this.Width / 100 * 5;
top = top = this.Height / 100 * 8;
images = new Image[ls_images.Count];
width = this.Width / 100 * 20;
height = this.Width / 100 * 20;
for (int i = 0; i < images.Length; i++)
{
Image image = new Image();
this.canvas_board.Children.Add(image);
image.Stretch = Stretch.Fill;
image.Width = width;
image.Height = height;
image.SetValue(Canvas.TopProperty, top);
image.SetValue(Canvas.LeftProperty, 0.0);
image.Source = ls_images[i];
images[i] = image;
}
写了个图片跑马灯想优化一下外观,但是不会弄样式小白一枚,想在这个image基础上加个border圆角边框怎么整?