Microsoft Surface 应用程序的矩阵变换的比例限制
我开发了一个表面应用程序,用户可以从菜单中拉出电影并将其拖动到主画布上。我创建了一个用户控件来托管电影,并实现了 Affine2dManipulation,以便允许用户在主画布上旋转、缩放和移动控件。 问题是我想设置一个控制规模限制。 RenderTransform 由 MatrixTransform 处理。
如果有人对如何限制矩阵的尺度变换有任何想法,请告诉我
I've developed a surface application in which users are able to pull from a menu a movie and drag it on the main canvas. I've created a user control to host the movie and I implemented Affine2dManipulation in order to allow the users to rotate, scale and move the control on the main canvas.
The problem is that i want to set a scale limit for control. The RenderTransform is handled by a MatrixTransform.
If anyone has any ideeas on how to limit the scaletransform for the matrix please let me know
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不使用 ScatterView/ScatterViewItem 有什么特殊原因吗?因为这些控件旨在为您提供您在此处解释的确切行为。
Is there any particular reason why you aren't using ScatterView/ScatterViewItem? Because those controls are meant to give you the exact behavior you explained here.