问题描述
我正在尝试在空白内进行鼠标按下事件,但是我的所有尝试均未成功,这就是我现在所拥有的:
void newEllipse
{
Ellipse pic = new Ellipse()
ImageBrush img = new ImageBrush();
img.ImageSource = new BitmapImage(new Uri(gamePic));
pic.Fill = img;
pic.MouseDown += new MouseButtonEventHandler(object _,MouseButtonEventHandler e)
{
//Stuff here
};
}
但是,这不起作用,我不确定还有其他事情要做。有人帮忙吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)