Update MapPanel.Avalonia.cs

This commit is contained in:
ClemensFischer 2025-03-24 23:10:31 +01:00
parent 0511b439e1
commit 1228489f9f

View file

@ -22,9 +22,9 @@ namespace MapControl
public MapPanel() public MapPanel()
{ {
if (this is MapBase mapBase) if (this is MapBase)
{ {
SetValue(ParentMapProperty, mapBase); SetValue(ParentMapProperty, this);
} }
} }