MapPanel implementation

This commit is contained in:
ClemensFischer 2024-08-28 14:39:49 +02:00
parent 6d2ba9ede7
commit 7637210211
4 changed files with 15 additions and 10 deletions

View file

@ -22,6 +22,8 @@ namespace MapControl
DependencyPropertyHelper.RegisterAttached<MapPanel, BoundingBox>("BoundingBox", null,
FrameworkPropertyMetadataOptions.AffectsParentArrange);
protected IEnumerable<FrameworkElement> ChildElements => InternalChildren.OfType<FrameworkElement>();
public MapPanel()
{
if (this is MapBase)
@ -41,8 +43,6 @@ namespace MapControl
element.RenderTransformOrigin = new Point(originX, originY);
}
protected IEnumerable<FrameworkElement> ChildElements => InternalChildren.OfType<FrameworkElement>();
private static void SetVisible(FrameworkElement element, bool visible)
{
element.Visibility = visible ? Visibility.Visible : Visibility.Collapsed;