mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Use lambda discard parameters
This commit is contained in:
parent
301ebacc58
commit
29ccf656cd
11 changed files with 17 additions and 17 deletions
|
|
@ -26,8 +26,8 @@ namespace MapControl
|
|||
// Workaround for missing property value inheritance.
|
||||
// Loaded and Unloaded handlers set and clear the ParentMap property value.
|
||||
//
|
||||
element.Loaded += (s, e) => GetParentMap((FrameworkElement)s);
|
||||
element.Unloaded += (s, e) => ((FrameworkElement)s).ClearValue(ParentMapProperty);
|
||||
element.Loaded += (_, _) => GetParentMap(element);
|
||||
element.Unloaded += (_, _) => element.ClearValue(ParentMapProperty);
|
||||
}
|
||||
|
||||
public static MapBase GetParentMap(FrameworkElement element)
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace MapControl
|
|||
|
||||
Content = grid;
|
||||
|
||||
SizeChanged += (s, e) => path.Data = BuildGeometry();
|
||||
SizeChanged += (_, _) => path.Data = BuildGeometry();
|
||||
}
|
||||
|
||||
public UIElement Child
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue