i can bind Ctrl+C
or Ctrl+LeftClick
. but can i bind to mouse/scroll wheel actions? i am trying to do something like increase/decrease font size like in the browser. so ctrl+mwheelup
= increase font size
views:
12answers:
1
A:
In constructor
PreviewMouseWheel += Zoom_MouseWheel;
And then
private void Zoom_MouseWheel(object sender, MouseWheelEventArgs e)
{
bool handle = (Keyboard.Modifiers & ModifierKeys.Control) > 0;
if (!handle)
return;
zoom();
}
lukas
2010-09-01 13:46:11