程序中这样写
Rectangle recttangle = new Rectangle() {
Width = 50,
Height = 50,
};
recttangle.SetValue(Canvas.LeftProperty, xxxx);
recttangle.SetValue(Canvas.TopProperty, xxxx));
recttangle.Fill =new SolidColorBrush(Colors.Red);
LayoutRoot.Children.Add(recttangle);
。。
。
image.SetValue(Canvas.LeftProperty, xxxx);
image.SetValue(Canvas.TopProperty,xxxx);
image.Width = xxxx;
image.Height =xxxx;
结果没有出图片遮盖画刷的期望,反而是画刷遮住图片了,请问应该怎么解决啊?
Rectangle recttangle = new Rectangle() {
Width = 50,
Height = 50,
};
recttangle.SetValue(Canvas.LeftProperty, xxxx);
recttangle.SetValue(Canvas.TopProperty, xxxx));
recttangle.Fill =new SolidColorBrush(Colors.Red);
LayoutRoot.Children.Add(recttangle);
。。
。
image.SetValue(Canvas.LeftProperty, xxxx);
image.SetValue(Canvas.TopProperty,xxxx);
image.Width = xxxx;
image.Height =xxxx;
结果没有出图片遮盖画刷的期望,反而是画刷遮住图片了,请问应该怎么解决啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货