More WIndows specific parts moved to this project

This commit is contained in:
Dan Clark
2024-11-02 20:57:13 +00:00
parent 48c63b3bb0
commit 81e39f9895
25 changed files with 528 additions and 68 deletions
@@ -533,8 +533,8 @@ public class ContentCropper : ContentControl
double centreX,
double centreY)
{
int width = (int)border.Width;
int height = (int)border.Height;
int width = (int?)border?.Width ?? 0;
int height = (int?)border?.Height ?? 0;
double x = Math.Max(centreX - width / 2, 0);
double y = Math.Max(centreY - height / 2, 0);