mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update comments
This commit is contained in:
parent
9db1987ee5
commit
754e185c5d
20 changed files with 83 additions and 48 deletions
|
|
@ -101,7 +101,9 @@ namespace MapControl
|
|||
|
||||
private void OnMouseWheel(object sender, MouseWheelEventArgs e)
|
||||
{
|
||||
mouseWheelDelta += e.Delta / 120d; // standard mouse wheel delta
|
||||
// Standard mouse wheel delta value is 120.
|
||||
//
|
||||
mouseWheelDelta += e.Delta / 120d;
|
||||
|
||||
if (Math.Abs(mouseWheelDelta) >= 1d)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -61,7 +61,8 @@ namespace MapControl
|
|||
{
|
||||
base.OnInitialized(e);
|
||||
|
||||
// If this.Stroke is not explicitly set, bind it to this.Foreground
|
||||
// If this.Stroke is not explicitly set, bind it to this.Foreground.
|
||||
//
|
||||
this.SetBindingOnUnsetProperty(StrokeProperty, this, ForegroundProperty, nameof(Foreground));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@ namespace MapControl
|
|||
|
||||
private static void DataPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
if (e.NewValue != null && !ReferenceEquals(e.NewValue, e.OldValue)) // Data is actually a new Geometry
|
||||
// Check if Data is actually a new Geometry.
|
||||
//
|
||||
if (e.NewValue != null && !ReferenceEquals(e.NewValue, e.OldValue))
|
||||
{
|
||||
var path = (MapPath)obj;
|
||||
var data = (Geometry)e.NewValue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue