Avalonia Map.ManipulationModes

This commit is contained in:
ClemensFischer 2024-05-28 22:16:29 +02:00
parent 24b2165d0a
commit fc4139c739
3 changed files with 99 additions and 21 deletions

View file

@ -17,7 +17,7 @@ namespace MapControl
DependencyPropertyHelper.Register<Map, double>(nameof(MouseWheelZoomDelta), 0.25);
public static readonly DependencyProperty ManipulationModeProperty =
DependencyPropertyHelper.Register<Map, ManipulationModes>(nameof(ManipulationMode), ManipulationModes.Scale | ManipulationModes.Translate);
DependencyPropertyHelper.Register<Map, ManipulationModes>(nameof(ManipulationMode), ManipulationModes.Translate | ManipulationModes.Scale);
private Point? mousePosition;
private double mouseWheelDelta;