Version 4.9.0: Reworked MapPanel child arrangement.

This commit is contained in:
ClemensF 2018-04-30 23:13:50 +02:00
parent 0a7d0fccd2
commit 56d376c4d0
24 changed files with 326 additions and 322 deletions

View file

@ -4,6 +4,7 @@
using System;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
#if WINDOWS_UWP
using Windows.Foundation;
@ -295,7 +296,7 @@ namespace MapControl
boundingBox.West += offset;
boundingBox.East += offset;
foreach (UIElement element in Children)
foreach (var element in Children.OfType<FrameworkElement>())
{
var bbox = GetBoundingBox(element);
@ -309,7 +310,7 @@ namespace MapControl
private void ClearImages()
{
foreach (UIElement element in Children)
foreach (var element in Children.OfType<FrameworkElement>())
{
element.ClearValue(BoundingBoxProperty);
element.ClearValue(Image.SourceProperty);