From 26b748d664fafa1821b82720325b11c72266a1f7 Mon Sep 17 00:00:00 2001 From: Yimeng Wu Date: Fri, 10 Nov 2023 22:56:44 +0000 Subject: [PATCH 1/2] Port microsoft/microsoft-ui-xaml#4412 (#604) --- .../Repeater/Layouts/FlowLayout/FlowLayoutAlgorithm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ModernWpf.Controls/Repeater/Layouts/FlowLayout/FlowLayoutAlgorithm.cs b/ModernWpf.Controls/Repeater/Layouts/FlowLayout/FlowLayoutAlgorithm.cs index daac58f3..9c11f546 100644 --- a/ModernWpf.Controls/Repeater/Layouts/FlowLayout/FlowLayoutAlgorithm.cs +++ b/ModernWpf.Controls/Repeater/Layouts/FlowLayout/FlowLayoutAlgorithm.cs @@ -471,9 +471,9 @@ private bool ShouldContinueFillingUpSpace( // Ensure that both minor and major directions are taken into consideration so that if the scrolling direction // is the same as the flow direction we still stop at the end of the viewport rectangle. - shouldContinue = - (direction == GenerateDirection.Forward && elementMajorStart < rectMajorEnd && elementMinorStart < rectMinorEnd) || - (direction == GenerateDirection.Backward && elementMajorEnd > rectMajorStart && elementMinorEnd > rectMinorStart); + shouldContinue = direction == GenerateDirection.Forward + ? elementMajorStart < rectMajorEnd && elementMinorStart < rectMinorEnd + : elementMajorEnd > rectMajorStart && elementMinorEnd > rectMinorStart; } return shouldContinue; From 5f72272a4cf0f8321b7491bfd00b4c9c882a60e0 Mon Sep 17 00:00:00 2001 From: Yimeng Wu Date: Fri, 10 Nov 2023 23:07:39 +0000 Subject: [PATCH 2/2] Port microsoft/microsoft-ui-xaml#4451 (#605) --- ModernWpf/ThemeResources/Dark.xaml | 6 +++--- ModernWpf/ThemeResources/Light.xaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ModernWpf/ThemeResources/Dark.xaml b/ModernWpf/ThemeResources/Dark.xaml index dd801b2b..e65075e9 100644 --- a/ModernWpf/ThemeResources/Dark.xaml +++ b/ModernWpf/ThemeResources/Dark.xaml @@ -228,8 +228,8 @@ #454545 #00FFFFFF - #0AFFFFFF - #04FFFFFF + #0FFFFFFF + #0AFFFFFF #00FFFFFF #00FFFFFF @@ -271,7 +271,7 @@ #0DFFFFFF #08FFFFFF - #4C000000 + #332C2C2C #09FFFFFF #0DFFFFFF diff --git a/ModernWpf/ThemeResources/Light.xaml b/ModernWpf/ThemeResources/Light.xaml index d9576c00..61d27ead 100644 --- a/ModernWpf/ThemeResources/Light.xaml +++ b/ModernWpf/ThemeResources/Light.xaml @@ -228,8 +228,8 @@ #FFFFFF #00FFFFFF - #06000000 - #03000000 + #09000000 + #06000000 #00FFFFFF #00FFFFFF @@ -271,7 +271,7 @@ #B3FFFFFF #80F6F6F6 - #4D000000 + #4DFFFFFF #80FFFFFF #FFFFFF