From 87df6358c47cdd6062aa2a0b4372b664e3df0bc9 Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Sat, 11 May 2024 16:36:26 +0200 Subject: [PATCH 1/6] Fix #22289 --- src/Core/src/Handlers/View/ViewHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/src/Handlers/View/ViewHandler.cs b/src/Core/src/Handlers/View/ViewHandler.cs index eb3ac9b6eaaf..cdcdeeb2c7a3 100644 --- a/src/Core/src/Handlers/View/ViewHandler.cs +++ b/src/Core/src/Handlers/View/ViewHandler.cs @@ -417,6 +417,8 @@ public static void MapContainerView(IViewHandler handler, IView view) handler.HasContainer = viewHandler.NeedsContainer; else handler.HasContainer = view.NeedsContainer(); + + handler.UpdateValue(nameof(IView.Visibility)); } /// From 485c641f1658f900e8ac1cb8d559148b5df1fb8a Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Sat, 11 May 2024 16:37:01 +0200 Subject: [PATCH 2/6] Added a UI Test (#22289) --- .../TestCases.HostApp/Issues/Issue22289.xaml | 17 +++++++++++++ .../Issues/Issue22289.xaml.cs | 21 ++++++++++++++++ .../Tests/Issues/Issue22289.cs | 24 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue22289.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue22289.xaml.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22289.cs diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue22289.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue22289.xaml new file mode 100644 index 000000000000..6867df224e6c --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue22289.xaml @@ -0,0 +1,17 @@ + + + + +