MapLayer/MapLayerItemsSource

This commit is contained in:
ClemensFischer 2025-08-12 11:33:39 +02:00
parent bb47829cd3
commit 21ac686843
5 changed files with 24 additions and 78 deletions

View file

@ -1,4 +1,5 @@
#if WPF
using System.Linq;
#if WPF
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
@ -172,7 +173,7 @@ namespace MapControl
{
availableSize = new Size(double.PositiveInfinity, double.PositiveInfinity);
foreach (var element in ChildElements)
foreach (var element in Children.Cast<FrameworkElement>())
{
element.Measure(availableSize);
}
@ -184,7 +185,7 @@ namespace MapControl
{
if (parentMap != null)
{
foreach (var element in ChildElements)
foreach (var element in Children.Cast<FrameworkElement>())
{
ArrangeChildElement(element, finalSize);
}