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); SetValue(ParentMapProperty, this);
} }
#if UWP || WINUI
else else
{ {
InitMapPanel(); InitMapElement(this);
} }
#endif
} }
partial void InitMapPanel();
private MapBase parentMap; private MapBase parentMap;
/// <summary> /// <summary>

View file

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