Clip main surface to rounded geometry to prevent corner overflow

This commit is contained in:
Meik
2026-03-05 15:30:01 +01:00
parent 0db4c1ed56
commit ac427c2c72
2 changed files with 16 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
- Einheitliche Button-Optik für Primary-Actions, Top-Bar-Actions und dialogbezogene Aktionen.
- Außenrahmen der Haupt-GUI als durchgehender Outline-Rahmen umgesetzt, damit die Kontur auch über die Rundungen konsistent sichtbar bleibt.
- Eckradius von WindowChrome und Außenrahmen auf das Inhalts-Panel abgestimmt, damit die Rundungen einheitlich wirken.
- Hauptfläche mit explizitem Rounded-Clip versehen, damit Inhalte nicht über den Außenrahmen in die Ecken hinausragen.
### Navigation und Interaktion
- Navigation-Buttons neu ausgerichtet (horizontal/vertikal), Icons vergrößert und Zustände vereinheitlicht.

View File

@@ -144,6 +144,7 @@ namespace C4IT_CustomerPanel
FormHelper.GetLocation((int)this.Width, (int)this.Height, (double)ConfigSettings.local_currentDPI / 96);
SetAppearance(true);
UpdateMainSurfaceClip();
SetLocation();
CustomerPanelSecurePassword.Init();
@@ -2157,9 +2158,23 @@ namespace C4IT_CustomerPanel
private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
{
UpdateMainSurfaceClip();
SetLocation();
}
private void UpdateMainSurfaceClip()
{
if (MainWindowSurface == null)
return;
double width = MainWindowSurface.ActualWidth;
double height = MainWindowSurface.ActualHeight;
if (width <= 0 || height <= 0)
return;
MainWindowSurface.Clip = new RectangleGeometry(new Rect(0, 0, width, height), 20, 20);
}
}
public class cMainFunctionInfo