开发者

Scale limit for matrix transform for a Microsoft Surface application

开发者 https://www.devze.com 2023-02-05 16:50 出处:网络
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 Affine2dManip

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 o开发者_Python百科n how to limit the scaletransform for the matrix please let me know


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消