From f51c30cd8187faa9d0f3364f169b21f49600d793 Mon Sep 17 00:00:00 2001 From: Meik Date: Thu, 5 Mar 2026 15:51:33 +0100 Subject: [PATCH] fix(ui): inset main surface to keep content inside rounded frame --- MainWindow.xaml | 3 ++- MainWindow.xaml.cs | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/MainWindow.xaml b/MainWindow.xaml index 7b8b707..59cd6f3 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -355,7 +355,8 @@ 0 && surfaceHeight > 0) + { + MainWindowSurface.Clip = new RectangleGeometry(new Rect(0d, 0d, surfaceWidth, surfaceHeight), surfaceRadius, surfaceRadius); + } _mainSurfaceClipInitialized = true; }