mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +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
|
|
@ -105,7 +105,8 @@ namespace MapControl
|
|||
Animation.RegisterCustomAnimator<Location, LocationAnimator>();
|
||||
}
|
||||
|
||||
internal Size RenderSize => Bounds.Size;
|
||||
public double ActualWidth => Bounds.Width;
|
||||
public double ActualHeight => Bounds.Height;
|
||||
|
||||
protected override void OnSizeChanged(SizeChangedEventArgs e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ namespace MapControl
|
|||
AffectsRender<PushpinBorder>(ArrowSizeProperty, BorderWidthProperty, CornerRadiusProperty, BackgroundProperty, BorderBrushProperty);
|
||||
}
|
||||
|
||||
private Size RenderSize => Bounds.Size;
|
||||
public double ActualWidth => Bounds.Width;
|
||||
public double ActualHeight => Bounds.Height;
|
||||
|
||||
public CornerRadius CornerRadius
|
||||
{
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ namespace MapControl
|
|||
/// <summary>
|
||||
/// Gets the index bounds of a tile matrix.
|
||||
/// </summary>
|
||||
public Rect GetTileMatrixBounds(double tileMatrixScale, Point tileMatrixTopLeft, Size viewSize)
|
||||
public Rect GetTileMatrixBounds(double tileMatrixScale, Point tileMatrixTopLeft, double viewWidth, double viewHeight)
|
||||
{
|
||||
// View origin in map coordinates.
|
||||
//
|
||||
|
|
@ -143,7 +143,7 @@ namespace MapControl
|
|||
|
||||
// Transform view bounds to tile pixel bounds.
|
||||
//
|
||||
return new Rect(0d, 0d, viewSize.Width, viewSize.Height).TransformToAABB(transform);
|
||||
return new Rect(0d, 0d, viewWidth, viewHeight).TransformToAABB(transform);
|
||||
}
|
||||
|
||||
internal static Matrix CreateTransformMatrix(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue