From a7cc34079da375f3380a09d1eb75870a700923c2 Mon Sep 17 00:00:00 2001 From: reunion-maestro-bot Date: Tue, 13 Feb 2024 01:54:39 +0000 Subject: [PATCH] Syncing content from committish release/1.5-preview1 --- .../AnnotatedScrollBar/AnnotatedScrollBar.cpp | 11 +- .../CommandBarFlyout_themeresources.xaml | 14 +- .../InteractionTests/CommonStylesTests.cs | 22 ++ .../MenuFlyout_themeresources.xaml | 4 +- .../CommonStyles/TestUI/CommonStylesPage.xaml | 14 + .../TestUI/CommonStylesPage.xaml.cs | 11 + .../TestUI/ContentDialogPage.xaml.cs | 2 +- controls/dev/Generated/InfoBar.properties.cpp | 30 +- controls/dev/Generated/InfoBar.properties.h | 12 + controls/dev/InfoBar/InfoBar.cpp | 21 ++ controls/dev/InfoBar/InfoBar.h | 4 + controls/dev/InfoBar/InfoBar.idl | 4 + controls/dev/InfoBar/InfoBar.xaml | 12 +- controls/dev/ItemContainer/ItemContainer.xaml | 1 - .../TestUI/ItemContainerSummaryPage.xaml | 37 ++- controls/dev/ItemsView/ItemsView.xaml | 2 +- .../NavigationView_themeresources.xaml | 4 +- controls/dev/SelectorBar/SelectorBar.xaml | 30 +- .../SelectorBar_themeresources.xaml | 29 +- .../WebView2/TestUI/WebView2BasicPage.xaml.cs | 130 ++++---- controls/dev/WebView2/WebView2.h | 2 +- controls/dev/dll/packages.config | 4 +- controls/dev/inc/CppWinRTHelpers.h | 10 +- .../Themes/DisableAnimationsStyles.xaml | 2 +- controls/test/TestAppCX/packages.config | 2 +- controls/tools/CustomTasksTool/Program.cs | 8 +- .../KeytipAutomaticPlacementAlgorithm.cpp | 11 + .../components/ContentRoot/ContentRoot.cpp | 15 +- .../UIBridgeFocus/FocusController.cpp | 33 +- dxaml/xcp/components/metadata/inc/Indexes.g.h | 1 + dxaml/xcp/core/core/elements/Popup.cpp | 8 +- dxaml/xcp/core/core/elements/StackPanel.cpp | 25 +- dxaml/xcp/core/core/elements/depends.cpp | 11 - dxaml/xcp/core/inc/Popup.h | 2 +- dxaml/xcp/core/inc/XamlIslandRoot.h | 6 +- .../core/native/text/Controls/TextBoxBase.h | 1 + .../core/microsoft.ui.xaml.coretypes.idl | 2 - .../core/microsoft.ui.xaml.coretypes2.idl | 17 +- .../dxaml/lib/AccessKeyManager_partial.cpp | 10 +- dxaml/xcp/dxaml/lib/CommandBar_Partial.cpp | 7 +- dxaml/xcp/dxaml/lib/ContentDialog_Partial.cpp | 19 +- dxaml/xcp/dxaml/lib/DXamlCore.cpp | 11 +- .../dxaml/lib/DisplayOrientationHelper.cpp | 43 +-- .../xcp/dxaml/lib/DisplayOrientationHelper.h | 2 +- dxaml/xcp/dxaml/lib/JupiterWindow.cpp | 4 +- dxaml/xcp/dxaml/lib/JupiterWindow.h | 2 +- .../dxaml/lib/ListViewBaseItem_Partial.cpp | 5 +- .../lib/ListViewBase_Partial_Interaction.cpp | 2 +- .../xcp/dxaml/lib/TextControlFlyoutHelper.cpp | 29 +- .../xcp/dxaml/lib/ToolTipService_Partial.cpp | 28 -- .../dxaml/lib/WindowsXamlManager_Partial.cpp | 294 +++++++++++------- .../dxaml/lib/WindowsXamlManager_Partial.h | 32 +- dxaml/xcp/dxaml/lib/XamlIsland_Partial.cpp | 137 +++++++- dxaml/xcp/dxaml/lib/XamlIsland_Partial.h | 3 + dxaml/xcp/dxaml/lib/XamlRoot_Partial.cpp | 24 ++ dxaml/xcp/dxaml/lib/synonyms.g.h | 4 +- .../FrameworkApplication.g.cpp | 10 +- .../FrameworkApplication.g.h | 17 +- .../WindowsXamlManager.g.cpp | 41 +-- .../WindowsXamlManager.g.h | 35 +-- ...mlShutdownCompletedOnThreadEventArgs.g.cpp | 4 +- ...XamlShutdownCompletedOnThreadEventArgs.g.h | 15 +- dxaml/xcp/dxaml/themes/generic.xaml | 2 + .../XamlOM/Model/Microsoft.UI.Xaml.Hosting.cs | 14 +- .../XamlOM/Model/Microsoft.UI.Xaml.cs | 7 +- eng/Version.Details.xml | 16 +- eng/versions.props | 2 +- packages.config | 4 +- ...ft.UI.Xaml.Markup.Compiler.interop.targets | 6 +- 69 files changed, 897 insertions(+), 486 deletions(-) diff --git a/controls/dev/AnnotatedScrollBar/AnnotatedScrollBar.cpp b/controls/dev/AnnotatedScrollBar/AnnotatedScrollBar.cpp index cd5c0e2d70..f6c14b2480 100644 --- a/controls/dev/AnnotatedScrollBar/AnnotatedScrollBar.cpp +++ b/controls/dev/AnnotatedScrollBar/AnnotatedScrollBar.cpp @@ -299,11 +299,14 @@ void AnnotatedScrollBar::QueueLayoutLabels(unsigned int millisecondWait) if (!m_labelsDebounce.test_and_set()) { - auto strongThis = get_strong(); // ensure object lifetime during coroutines - auto runLayoutLabelsAction = [&, strongThis]() + auto weakThis = get_weak(); + auto runLayoutLabelsAction = [weakThis]() { - strongThis->m_labelsDebounce.clear(); - strongThis->LayoutLabels(); + if (auto strongThis = weakThis.get()) + { + strongThis->m_labelsDebounce.clear(); + strongThis->LayoutLabels(); + } }; SharedHelpers::ScheduleActionAfterWait(runLayoutLabelsAction, millisecondWait); diff --git a/controls/dev/CommandBarFlyout/CommandBarFlyout_themeresources.xaml b/controls/dev/CommandBarFlyout/CommandBarFlyout_themeresources.xaml index 7117e4e27f..01c44209c1 100644 --- a/controls/dev/CommandBarFlyout/CommandBarFlyout_themeresources.xaml +++ b/controls/dev/CommandBarFlyout/CommandBarFlyout_themeresources.xaml @@ -310,7 +310,7 @@ - \ No newline at end of file + diff --git a/controls/dev/CommonStyles/TestUI/CommonStylesPage.xaml b/controls/dev/CommonStyles/TestUI/CommonStylesPage.xaml index 93c579a5c8..84ee172d61 100644 --- a/controls/dev/CommonStyles/TestUI/CommonStylesPage.xaml +++ b/controls/dev/CommonStyles/TestUI/CommonStylesPage.xaml @@ -293,6 +293,20 @@ + + + + + + + + + +