画刷遮住图片应该怎么办?
程序中这样写
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;
结果没有出图片遮盖画刷的期望,反而是画刷遮住图片了,请问应该怎么解决啊?