Clip main surface to rounded geometry to prevent corner overflow
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
- Einheitliche Button-Optik für Primary-Actions, Top-Bar-Actions und dialogbezogene Aktionen.
|
- 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.
|
- 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.
|
- 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 und Interaktion
|
||||||
- Navigation-Buttons neu ausgerichtet (horizontal/vertikal), Icons vergrößert und Zustände vereinheitlicht.
|
- Navigation-Buttons neu ausgerichtet (horizontal/vertikal), Icons vergrößert und Zustände vereinheitlicht.
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ namespace C4IT_CustomerPanel
|
|||||||
FormHelper.GetLocation((int)this.Width, (int)this.Height, (double)ConfigSettings.local_currentDPI / 96);
|
FormHelper.GetLocation((int)this.Width, (int)this.Height, (double)ConfigSettings.local_currentDPI / 96);
|
||||||
|
|
||||||
SetAppearance(true);
|
SetAppearance(true);
|
||||||
|
UpdateMainSurfaceClip();
|
||||||
|
|
||||||
SetLocation();
|
SetLocation();
|
||||||
CustomerPanelSecurePassword.Init();
|
CustomerPanelSecurePassword.Init();
|
||||||
@@ -2157,9 +2158,23 @@ namespace C4IT_CustomerPanel
|
|||||||
|
|
||||||
private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
|
private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
UpdateMainSurfaceClip();
|
||||||
SetLocation();
|
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
|
public class cMainFunctionInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user