mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Version 4.9.0: Reworked MapPanel child arrangement.
This commit is contained in:
parent
9ba43d3a18
commit
a21863e466
1 changed files with 11 additions and 8 deletions
|
|
@ -58,16 +58,19 @@ namespace MapControl
|
||||||
|
|
||||||
protected override void SetParentMap(MapBase map)
|
protected override void SetParentMap(MapBase map)
|
||||||
{
|
{
|
||||||
if (Foreground == null && map != null)
|
if (map != null)
|
||||||
{
|
{
|
||||||
SetBinding(ForegroundProperty,
|
if (Foreground == null)
|
||||||
map.GetBindingExpression(MapBase.ForegroundProperty)?.ParentBinding ??
|
{
|
||||||
new Binding { Source = map, Path = new PropertyPath("Foreground") });
|
SetBinding(ForegroundProperty,
|
||||||
}
|
map.GetBindingExpression(MapBase.ForegroundProperty)?.ParentBinding ??
|
||||||
|
new Binding { Source = map, Path = new PropertyPath("Foreground") });
|
||||||
|
}
|
||||||
|
|
||||||
if (Stroke == null)
|
if (Stroke == null)
|
||||||
{
|
{
|
||||||
SetBinding(StrokeProperty, GetBinding(ForegroundProperty, nameof(Foreground)));
|
SetBinding(StrokeProperty, GetBinding(ForegroundProperty, nameof(Foreground)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.SetParentMap(map);
|
base.SetParentMap(map);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue