ZoomEvent / MouseWheel
Posted: Mon Apr 03, 2017 7:47 am
I'd like to catch the "MouseWheel"-Scroll Event, thats how I defined it:
and the Code inside the class looks like this:
What did I miss? Thanks for your help!
Code: Select all
<Map:WpfMap Name="ptvWpfMap" HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Loaded="ptvWpfMap_Loaded" ContextMenu="{StaticResource cmButton}" MouseWheel="ptvWpfMap_MouseWheel"/>
Code: Select all
private void ptvWpfMap_MouseWheel(object sender, System.Windows.Input.MouseWheelEventArgs e)
{
WriteLine("scroll");
}