我是使用捏和潘手势识别器,它包装我的图像缩放和移动图像在屏幕上。我从指南和那里学到了计算方法。
下面是pan的简单计算示例:
// Translate and ensure we don't pan beyond the wrapped user interface element bounds.
Content.TranslationX = Math.Max(Math.Min(0, xOffset + e.TotalX), -Math.Abs(Content.Width - App.ScreenWidth));
Content.TranslationY = Math.Max(Mat
我有以下标记:
<div id="outerContent">
<div id="tabBar">This element is always at the top, defined as block, and 70% width. Also is centered.</div>
<div id="leftSide">This is a left side bar.</div>
<div id="content">The actual