Replaced RenderSize by ActualWidth/Height

This commit is contained in:
ClemensFischer 2024-07-15 20:10:28 +02:00
parent 4e6d0db24f
commit fa508f51e7
16 changed files with 67 additions and 51 deletions

View file

@ -34,8 +34,8 @@ namespace MapControl
protected virtual Geometry BuildGeometry()
{
var width = Math.Floor(RenderSize.Width);
var height = Math.Floor(RenderSize.Height);
var width = Math.Floor(ActualWidth);
var height = Math.Floor(ActualHeight);
var x1 = BorderWidth / 2d;
var y1 = BorderWidth / 2d;
var x2 = width - x1;