mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.9.0: Reworked MapPanel child arrangement.
This commit is contained in:
parent
0a7d0fccd2
commit
56d376c4d0
24 changed files with 326 additions and 322 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue