|
<syncfusion:SfMap Panning="map_Panning" ZoomLevel="5" MouseLeftButtonUp="map_MouseLeftButtonUp" EnableZoom="True" EnablePan="True">
<syncfusion:SfMap.Layers>
<syncfusion:ImageryLayer LayerType="OSM" >
</syncfusion:ImageryLayer>
</syncfusion:SfMap.Layers>
</syncfusion:SfMap> |
|
public partial class MainWindow : Window
{
bool Panned = false;
....
private void map_Panning(object sender, PanEventArgs args)
{
Panned = true;
}
private void map_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
if(Panned)
{
///Add your code here
Panned = false;
}
}
} |