mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
MapLayer/MapLayerItemsSource
This commit is contained in:
parent
bb47829cd3
commit
21ac686843
5 changed files with 24 additions and 78 deletions
|
|
@ -1,6 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace MapControl
|
||||
namespace MapControl
|
||||
{
|
||||
public partial class MapPanel
|
||||
{
|
||||
|
|
@ -13,18 +11,6 @@ namespace MapControl
|
|||
public static readonly AttachedProperty<BoundingBox> BoundingBoxProperty =
|
||||
DependencyPropertyHelper.RegisterAttached<BoundingBox>("BoundingBox", typeof(MapPanel));
|
||||
|
||||
protected Controls ChildElements => Children;
|
||||
|
||||
protected FrameworkElement GetChildElement(int index) => index < Children.Count ? Children[index] : null;
|
||||
|
||||
protected void InsertChildElement(int index, FrameworkElement element) => Children.Insert(index, element);
|
||||
|
||||
protected void InsertChildElements(int index, IEnumerable<FrameworkElement> elements) => Children.InsertRange(index, elements);
|
||||
|
||||
protected void RemoveChildElement(int index) => Children.RemoveAt(index);
|
||||
|
||||
protected void RemoveChildElements(int index, int count) => Children.RemoveRange(index, count);
|
||||
|
||||
static MapPanel()
|
||||
{
|
||||
AffectsParentArrange<MapPanel>(LocationProperty, BoundingBoxProperty);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue