mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Add MapBorderPanel
This commit is contained in:
parent
be8c1d2c4b
commit
07710f0e40
5 changed files with 112 additions and 6 deletions
|
|
@ -105,8 +105,7 @@ namespace MapControl
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the view position of an element with Location
|
||||
/// or null when the element has no Location.
|
||||
/// Gets the view position of an element with Location.
|
||||
/// </summary>
|
||||
public static Point? GetViewPosition(FrameworkElement element)
|
||||
{
|
||||
|
|
@ -161,7 +160,7 @@ namespace MapControl
|
|||
var location = GetLocation(element);
|
||||
var position = location != null ? GetViewPosition(location) : null;
|
||||
|
||||
SetViewPosition(element, position);
|
||||
SetViewPosition(element, ref position);
|
||||
|
||||
if (GetAutoCollapse(element))
|
||||
{
|
||||
|
|
@ -203,7 +202,7 @@ namespace MapControl
|
|||
return finalSize;
|
||||
}
|
||||
|
||||
protected virtual Point? GetViewPosition(Location location)
|
||||
protected Point? GetViewPosition(Location location)
|
||||
{
|
||||
var position = parentMap.LocationToView(location);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue