fix(layout): remove hard window-width bindings causing corner overdraw
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user