Removed partial method from MapPanel

This commit is contained in:
ClemensFischer 2025-06-13 17:38:06 +02:00
parent eaf3ff05fa
commit 0a07c45979
2 changed files with 3 additions and 8 deletions

View file

@ -52,14 +52,14 @@ namespace MapControl
{
SetValue(ParentMapProperty, this);
}
#if UWP || WINUI
else
{
InitMapPanel();
InitMapElement(this);
}
#endif
}
partial void InitMapPanel();
private MapBase parentMap;
/// <summary>

View file

@ -25,11 +25,6 @@ namespace MapControl
protected IEnumerable<FrameworkElement> ChildElements => Children.OfType<FrameworkElement>();
partial void InitMapPanel()
{
InitMapElement(this);
}
public static void InitMapElement(FrameworkElement element)
{
// Workaround for missing property value inheritance.