mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-05 00:00:46 +01:00
Fixed GetParentMap
This commit is contained in:
parent
57b7f718ee
commit
816fa44115
|
|
@ -53,7 +53,8 @@ namespace MapControl
|
|||
{
|
||||
var parentMap = (MapBase)element.GetValue(ParentMapProperty);
|
||||
|
||||
if (parentMap == null && VisualTreeHelper.GetParent(element) is FrameworkElement parentElement)
|
||||
if (parentMap == null &&
|
||||
VisualTreeHelper.GetParent(element) is FrameworkElement parentElement)
|
||||
{
|
||||
parentMap = (parentElement as MapBase) ?? GetParentMap(parentElement);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue