Avalonia Pushpin

This commit is contained in:
ClemensFischer 2024-05-25 15:55:31 +02:00
parent 1788da27bd
commit 8e4110b600
10 changed files with 287 additions and 133 deletions

View file

@ -57,16 +57,16 @@ namespace MapControl
if (parentMap != null)
{
// Workaround for missing RelativeSource AncestorType=MapBase Bindings in default Style.
//
if (Background == null)
{
SetBinding(BackgroundProperty, parentMap.CreateBinding(nameof(Background)));
}
if (Foreground == null)
{
SetBinding(ForegroundProperty, parentMap.CreateBinding(nameof(Foreground)));
}
if (BorderBrush == null)
{
SetBinding(BorderBrushProperty, parentMap.CreateBinding(nameof(Foreground)));