Version 4.9.0: Reworked MapPanel child arrangement.

This commit is contained in:
ClemensF 2018-05-01 14:29:21 +02:00
parent 9ba43d3a18
commit a21863e466

View file

@ -58,7 +58,9 @@ namespace MapControl
protected override void SetParentMap(MapBase map)
{
if (Foreground == null && map != null)
if (map != null)
{
if (Foreground == null)
{
SetBinding(ForegroundProperty,
map.GetBindingExpression(MapBase.ForegroundProperty)?.ParentBinding ??
@ -69,6 +71,7 @@ namespace MapControl
{
SetBinding(StrokeProperty, GetBinding(ForegroundProperty, nameof(Foreground)));
}
}
base.SetParentMap(map);
}