wpf 鼠标滚动轮缩放MouseWheel
2021-04-01 14:27
标签:let form lex nsf max min transform inverse sla var pointToContent = group.Inverse.Transform(point); wpf 鼠标滚动轮缩放MouseWheel 标签:let form lex nsf max min transform inverse sla 原文地址:https://www.cnblogs.com/pengde/p/9237938.html
var transform = group.Children[0] as ScaleTransform;
if (transform.ScaleX + delta if (transform.ScaleX + delta > max) return;
transform.ScaleX += delta;
transform.ScaleY += delta;
var transform1 = group.Children[1] as TranslateTransform;
transform1.X = -1 * ((pointToContent.X * transform.ScaleX) - point.X);
transform1.Y = -1 * ((pointToContent.Y * transform.ScaleY) - point.Y);
上一篇:Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
下一篇:C# 之泛型详解
文章标题:wpf 鼠标滚动轮缩放MouseWheel
文章链接:http://soscw.com/index.php/essay/70967.html