Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
現在、右クリックでズームできます。マウススクロールでそれを行う簡単な方法はありますか?
ありがとう。
次のようなものを試してください。
protected override void OnPreviewMouseWheel(MouseWheelEventArgs e) { base.OnPreviewMouseWheel(e); if(Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)) { yourObject.Value += (e.Delta > 0) ? 0.2 : -0.2; }