mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Use lambda discard parameters
This commit is contained in:
parent
301ebacc58
commit
29ccf656cd
11 changed files with 17 additions and 17 deletions
|
|
@ -8,8 +8,8 @@ namespace MapControl.UiTools
|
|||
{
|
||||
protected MapMenuItem()
|
||||
{
|
||||
Loaded += (s, e) => Initialize();
|
||||
Click += (s, e) => Execute();
|
||||
Loaded += (_, _) => Initialize();
|
||||
Click += (_, _) => Execute();
|
||||
}
|
||||
|
||||
public string Text
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ namespace MapControl.UiTools
|
|||
public MenuButton()
|
||||
{
|
||||
ContextMenu = new ContextMenu();
|
||||
DataContextChanged += (s, e) => ContextMenu.DataContext = e.NewValue;
|
||||
Loaded += async (s, e) => await Initialize();
|
||||
Click += (s, e) => ContextMenu.IsOpen = true;
|
||||
DataContextChanged += (_, e) => ContextMenu.DataContext = e.NewValue;
|
||||
Loaded += async (_, _) => await Initialize();
|
||||
Click += (_, _) => ContextMenu.IsOpen = true;
|
||||
}
|
||||
|
||||
public string Icon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue