mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-09 00:14:51 +00:00
Replaced RenderSize by ActualWidth/Height
This commit is contained in:
parent
4e6d0db24f
commit
fa508f51e7
16 changed files with 67 additions and 51 deletions
|
|
@ -40,8 +40,8 @@ namespace MapControl
|
|||
protected override void SetViewPosition(FrameworkElement element, ref Point? position)
|
||||
{
|
||||
var onBorder = false;
|
||||
var w = ParentMap.RenderSize.Width;
|
||||
var h = ParentMap.RenderSize.Height;
|
||||
var w = ParentMap.ActualWidth;
|
||||
var h = ParentMap.ActualHeight;
|
||||
var minX = BorderWidth / 2d;
|
||||
var minY = BorderWidth / 2d;
|
||||
var maxX = w - BorderWidth / 2d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue