C#WPF在image1中拖动矩形 [英] C# WPF dragging an retangle in a image1

查看:87
本文介绍了C#WPF在image1中拖动矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在边缘厚度中拖动一个矩形,我想知道如何使它停止拖动到顶部,底部和底部的位置.如果bttom是>那么5不会让我拖动右边的5传递的矩形.

im dragging a retangle usin the margin thickness and i would like to know how to make it stop from draging too far to the top bottom right and left lie eg. if the bttom is > then 5 it will not let me drag the retangle passed the 5 on the right

推荐答案

您可以使用margin属性进行控制.
you can use margin property to control.


这篇关于C#WPF在image1中拖动矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆