mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
MapPanel implementation
This commit is contained in:
parent
6d2ba9ede7
commit
7637210211
4 changed files with 15 additions and 10 deletions
|
|
@ -27,6 +27,8 @@ namespace MapControl
|
|||
DependencyPropertyHelper.RegisterAttached<MapPanel, BoundingBox>("BoundingBox", null,
|
||||
(element, oldValue, newValue) => (element.Parent as MapPanel)?.InvalidateArrange());
|
||||
|
||||
protected IEnumerable<FrameworkElement> ChildElements => Children.OfType<FrameworkElement>();
|
||||
|
||||
public MapPanel()
|
||||
{
|
||||
InitMapElement(this);
|
||||
|
|
@ -74,8 +76,6 @@ namespace MapControl
|
|||
element.RenderTransformOrigin = new Point(originX, originY);
|
||||
}
|
||||
|
||||
protected IEnumerable<FrameworkElement> ChildElements => Children.OfType<FrameworkElement>();
|
||||
|
||||
private static void SetVisible(FrameworkElement element, bool visible)
|
||||
{
|
||||
element.Visibility = visible ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue