fix(layout): remove hard window-width bindings causing corner overdraw

This commit is contained in:
Meik
2026-03-05 16:04:08 +01:00
parent 55cda1790a
commit 696808d065
2 changed files with 4 additions and 5 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 durchgehende Border auf der Hauptfläche umgesetzt, damit die Kontur über alle Rundungen konsistent bleibt.
- Eckradius von WindowChrome, Hauptfläche und innerem Inhalts-Clip abgestimmt, damit Inhalte in allen vier Ecken innerhalb des Rahmens bleiben.
- Hauptlayout von festen `Window.ActualWidth`-Bindings entkoppelt, damit Header/Content nicht über die gerundete Innenfläche hinausragen.
- Initialisierung des Rounded-Clips auf den finalen Layout-Zeitpunkt erweitert (Loaded/Render), damit die Rundungsbegrenzung stabil greift.
### Navigation und Interaktion

View File

@@ -362,13 +362,11 @@
SnapsToDevicePixels="True"
ClipToBounds="True">
<Grid x:Name="MainWindowContentRoot">
<DockPanel Width="{Binding ActualWidth, ElementName=Window, Mode=OneWay}"
x:Name="MainDock"
<DockPanel x:Name="MainDock"
Background="{DynamicResource headerColor}">
<Grid DockPanel.Dock="Top"
x:Name="GridTop"
Width="{Binding ActualWidth, ElementName=Window, Mode=OneWay}"
HorizontalAlignment="Left"
HorizontalAlignment="Stretch"
Margin="0"
Background="{DynamicResource headerColor}"
Height="72"
@@ -487,7 +485,7 @@
BorderThickness="0"
BorderBrush="Gray"
CornerRadius="0,0,14,14"
Width="{Binding ActualWidth, ElementName=Window, Mode=OneWay}">
HorizontalAlignment="Stretch">
<Border.Background>
<ImageBrush ImageSource="Resources/top_cp.png"
Stretch="UniformToFill" />