Skip to content

Fix more SUI and Rejuvenated UI issues#12326

Merged
7 commits merged intomainfrom
dev/pabhoj/sui_centralize
Feb 2, 2022
Merged

Fix more SUI and Rejuvenated UI issues#12326
7 commits merged intomainfrom
dev/pabhoj/sui_centralize

Conversation

@PankajBhojwani
Copy link
Contributor

@PankajBhojwani PankajBhojwani commented Feb 2, 2022

  • The add new profile page now uses a dropdown rather than radio buttons
  • Subheaders, breadcrumb bar, buttons etc are now all centralized when the window is maximized (so they all align with the expanders now)
  • We no longer override the titlebar colors and instead use the xaml defaults (these still aren't great but at least we will get the fix automatically when it happens upstream)
  • Breadcrumb bar no longer has a negative margin, so there's no weird overlap that happens when the window becomes small
  • The number boxes for launch size and font size now use the Inline placement mode rather than compact, allowing modification to the number with fewer clicks
  • Textboxes now have a greater max width so they can occupy more space in the expander if needed

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also take this time to replace all of the radio buttons with combo boxes in SUI? I think it'll just look and feel better. And it fixes some a11y issues for us off the bat.

@DHowett
Copy link
Member

DHowett commented Feb 2, 2022 via email

@zadjii-msft
Copy link
Member

zadjii-msft commented Feb 2, 2022

Titlebar comparison (old top, new bottom)
image

god bless:
image

But then, this happens:
duplicate-profile-flyout-wild

I don't think the Inline thing worked for launch size
image
vs
image

And then, there are some crashes. I'm rebuilding now, because these don't make any sense. Posting separately. EDIT: The crashes were local only, sorry for the 5 alarm fire.

@zadjii-msft
Copy link
Member

zadjii-msft commented Feb 2, 2022

This one occurred when closing the window while the SUI was open. Repro'd 2/5 times I tried (the first two, and now I can't get it again...). There aren't really any Nav View changes here... are there?

Crash 1
Windows_UI_Xaml!ctl::ComObjectBase::QueryInterfaceBase+0x9 [inlined in Windows_UI_Xaml!ctl::ComObject<DirectUI::ListView>::QueryInterface+0x11]:
00007ffb`1c24f941 488b01          mov     rax,qword ptr [rcx] ds:0000016a`251fc7a8=????????????????
0:000> !xamlstowed
-------------------------
Callstack for hr=80004002 - No such interface supported

    Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e  (7ffb1c21922e) [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35]
    Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::IUIElement>::get+0x58  (7ffa9d5ae1f0) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097]
    Microsoft_UI_Xaml!winrt::impl::event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>::~event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>+0x28  (7ffa9d5abf18) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 5522]
    Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x24  (7ffa9d5f7278)
    Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14  (7ffa9d5f7234)
    Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64  (7ffa9d56adc4) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874]
    Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c  (7ffb1c1b7cbc) [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697]
    Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242  (7ffb1c1b6752) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757]
    Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29  (7ffb1c1b6399) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493]
    Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0  (7ffb1c19e400) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891]
    Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1  (7ffb1c19db05) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925]
    Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1  (7ffb1c19add9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039]
    Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f  (7ffb1c19a43b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3  (7ffb1c2f4b07) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346]
    Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long  (7ffb1c3cc103) [onecore\external\sdk\inc\wrl\event.h @ 354]
    CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20  (7ffb4a456630) [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919]
    CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c  (7ffb4a40e214) [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11]
    CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae  (7ffb4a40e16e) [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1  (7ffb4a41d851) [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d  (7ffb4a41d50d) [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383]
    CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714  (7ffb4a41c784) [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee  (7ffb4a419e5e) [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb  (7ffb4a41938b) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90  (7ffb4a416a70) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144]
    user32!UserCallWinProcCheckWow+0x4c3  (7ffb4f7faa63) [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282]
    user32!DispatchClientMessage+0x9c  (7ffb4f7fa42c) [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113]
    user32!__fnDWORD+0x3a  (7ffb4f807d4a) [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214]
    ntdll!KiUserCallbackDispatcherContinue  (7ffb50406964) [minkernel\ntos\rtl\amd64\trampoln.asm @ 607]
    win32u!ZwUserPeekMessage+0x14  (7ffb4d7d14d4) [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165]
    user32!_PeekMessage+0xb6  (7ffb4f802c66) [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814]
    user32!PeekMessageW+0x140  (7ffb4f802b80) [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176  (7ffb37b61526) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19  (7ffb37b639b9) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080]
    WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51  (7ff61bd6b5e1) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121]
    WindowsTerminal!AppHost::~AppHost+0x49  (7ff61bcf7179) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108]
    WindowsTerminal!wWinMain+0x279  (7ff61bced039) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199]
    WindowsTerminal!invoke_main+0x32  (7ff61be33592) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123]
    WindowsTerminal!__scrt_common_main_seh+0x12e  (7ff61be3343e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    WindowsTerminal!__scrt_common_main+0xe  (7ff61be332fe) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
    WindowsTerminal!wWinMainCRTStartup+0xe  (7ff61be3362e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17]
    KERNEL32!BaseThreadInitThunk+0x10  (7ffb4f6f1350) [clientcore\base\win32\client\thread.c @ 75]
    ntdll!RtlUserThreadStart+0x28  (7ffb503b1e78) [minkernel\ntdll\rtlstrt.c @ 1166]
-------------------------
Callstack for hr=80004002 - No such interface supported

    Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e  (7ffb1c21922e) [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35]
    Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::DependencyObject>::get+0x3f  (7ffa9d5ff1d7) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097]
    Microsoft_UI_Xaml!PropertyChanged_revoker::~PropertyChanged_revoker+0x33  (7ffa9d5aa933) [C:\a\_work\1\s\dev\inc\CppWinRTHelpers.h @ 302]
    Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x12  (7ffa9d5f7266)
    Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14  (7ffa9d5f7234)
    Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64  (7ffa9d56adc4) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874]
    Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c  (7ffb1c1b7cbc) [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697]
    Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242  (7ffb1c1b6752) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757]
    Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29  (7ffb1c1b6399) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493]
    Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0  (7ffb1c19e400) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891]
    Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1  (7ffb1c19db05) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925]
    Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1  (7ffb1c19add9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039]
    Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f  (7ffb1c19a43b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3  (7ffb1c2f4b07) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346]
    Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long  (7ffb1c3cc103) [onecore\external\sdk\inc\wrl\event.h @ 354]
    CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20  (7ffb4a456630) [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919]
    CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c  (7ffb4a40e214) [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11]
    CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae  (7ffb4a40e16e) [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1  (7ffb4a41d851) [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d  (7ffb4a41d50d) [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383]
    CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714  (7ffb4a41c784) [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee  (7ffb4a419e5e) [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb  (7ffb4a41938b) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90  (7ffb4a416a70) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144]
    user32!UserCallWinProcCheckWow+0x4c3  (7ffb4f7faa63) [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282]
    user32!DispatchClientMessage+0x9c  (7ffb4f7fa42c) [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113]
    user32!__fnDWORD+0x3a  (7ffb4f807d4a) [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214]
    ntdll!KiUserCallbackDispatcherContinue  (7ffb50406964) [minkernel\ntos\rtl\amd64\trampoln.asm @ 607]
    win32u!ZwUserPeekMessage+0x14  (7ffb4d7d14d4) [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165]
    user32!_PeekMessage+0xb6  (7ffb4f802c66) [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814]
    user32!PeekMessageW+0x140  (7ffb4f802b80) [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176  (7ffb37b61526) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19  (7ffb37b639b9) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080]
    WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51  (7ff61bd6b5e1) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121]
    WindowsTerminal!AppHost::~AppHost+0x49  (7ff61bcf7179) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108]
    WindowsTerminal!wWinMain+0x279  (7ff61bced039) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199]
    WindowsTerminal!invoke_main+0x32  (7ff61be33592) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123]
    WindowsTerminal!__scrt_common_main_seh+0x12e  (7ff61be3343e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    WindowsTerminal!__scrt_common_main+0xe  (7ff61be332fe) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
    WindowsTerminal!wWinMainCRTStartup+0xe  (7ff61be3362e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17]
    KERNEL32!BaseThreadInitThunk+0x10  (7ffb4f6f1350) [clientcore\base\win32\client\thread.c @ 75]
    ntdll!RtlUserThreadStart+0x28  (7ffb503b1e78) [minkernel\ntdll\rtlstrt.c @ 1166]
-------------------------
Callstack for hr=80004002 - No such interface supported

    Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e  (7ffb1c21922e) [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35]
    Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::IUIElement>::get+0x58  (7ffa9d5ae1f0) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097]
    Microsoft_UI_Xaml!winrt::impl::event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>::~event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>+0x28  (7ffa9d5abf18) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 5522]
    Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x24  (7ffa9d5f7278)
    Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14  (7ffa9d5f7234)
    Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64  (7ffa9d56adc4) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874]
    Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c  (7ffb1c1b7cbc) [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697]
    Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242  (7ffb1c1b6752) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757]
    Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29  (7ffb1c1b6399) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493]
    Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0  (7ffb1c19e400) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891]
    Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1  (7ffb1c19db05) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925]
    Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1  (7ffb1c19add9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039]
    Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f  (7ffb1c19a43b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3  (7ffb1c2f4b07) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346]
    Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long  (7ffb1c3cc103) [onecore\external\sdk\inc\wrl\event.h @ 354]
    CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20  (7ffb4a456630) [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919]
    CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c  (7ffb4a40e214) [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11]
    CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae  (7ffb4a40e16e) [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1  (7ffb4a41d851) [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d  (7ffb4a41d50d) [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383]
    CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714  (7ffb4a41c784) [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee  (7ffb4a419e5e) [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb  (7ffb4a41938b) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90  (7ffb4a416a70) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144]
    user32!UserCallWinProcCheckWow+0x4c3  (7ffb4f7faa63) [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282]
    user32!DispatchClientMessage+0x9c  (7ffb4f7fa42c) [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113]
    user32!__fnDWORD+0x3a  (7ffb4f807d4a) [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214]
    ntdll!KiUserCallbackDispatcherContinue  (7ffb50406964) [minkernel\ntos\rtl\amd64\trampoln.asm @ 607]
    win32u!ZwUserPeekMessage+0x14  (7ffb4d7d14d4) [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165]
    user32!_PeekMessage+0xb6  (7ffb4f802c66) [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814]
    user32!PeekMessageW+0x140  (7ffb4f802b80) [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176  (7ffb37b61526) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19  (7ffb37b639b9) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080]
    WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51  (7ff61bd6b5e1) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121]
    WindowsTerminal!AppHost::~AppHost+0x49  (7ff61bcf7179) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108]
    WindowsTerminal!wWinMain+0x279  (7ff61bced039) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199]
    WindowsTerminal!invoke_main+0x32  (7ff61be33592) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123]
    WindowsTerminal!__scrt_common_main_seh+0x12e  (7ff61be3343e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    WindowsTerminal!__scrt_common_main+0xe  (7ff61be332fe) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
    WindowsTerminal!wWinMainCRTStartup+0xe  (7ff61be3362e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17]
    KERNEL32!BaseThreadInitThunk+0x10  (7ffb4f6f1350) [clientcore\base\win32\client\thread.c @ 75]
    ntdll!RtlUserThreadStart+0x28  (7ffb503b1e78) [minkernel\ntdll\rtlstrt.c @ 1166]
-------------------------
Callstack for hr=80004002 - No such interface supported

    Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e  (7ffb1c21922e) [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35]
    Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::DependencyObject>::get+0x3f  (7ffa9d5ff1d7) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097]
    Microsoft_UI_Xaml!PropertyChanged_revoker::~PropertyChanged_revoker+0x33  (7ffa9d5aa933) [C:\a\_work\1\s\dev\inc\CppWinRTHelpers.h @ 302]
    Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x12  (7ffa9d5f7266)
    Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14  (7ffa9d5f7234)
    Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64  (7ffa9d56adc4) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874]
    Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c  (7ffb1c1b7cbc) [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697]
    Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242  (7ffb1c1b6752) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757]
    Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29  (7ffb1c1b6399) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493]
    Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0  (7ffb1c19e400) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891]
    Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1  (7ffb1c19db05) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925]
    Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1  (7ffb1c19add9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039]
    Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f  (7ffb1c19a43b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3  (7ffb1c2f4b07) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346]
    Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long  (7ffb1c3cc103) [onecore\external\sdk\inc\wrl\event.h @ 354]
    CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20  (7ffb4a456630) [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919]
    CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c  (7ffb4a40e214) [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11]
    CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae  (7ffb4a40e16e) [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1  (7ffb4a41d851) [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d  (7ffb4a41d50d) [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383]
    CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714  (7ffb4a41c784) [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee  (7ffb4a419e5e) [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb  (7ffb4a41938b) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90  (7ffb4a416a70) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144]
    user32!UserCallWinProcCheckWow+0x4c3  (7ffb4f7faa63) [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282]
    user32!DispatchClientMessage+0x9c  (7ffb4f7fa42c) [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113]
    user32!__fnDWORD+0x3a  (7ffb4f807d4a) [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214]
    ntdll!KiUserCallbackDispatcherContinue  (7ffb50406964) [minkernel\ntos\rtl\amd64\trampoln.asm @ 607]
    win32u!ZwUserPeekMessage+0x14  (7ffb4d7d14d4) [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165]
    user32!_PeekMessage+0xb6  (7ffb4f802c66) [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814]
    user32!PeekMessageW+0x140  (7ffb4f802b80) [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176  (7ffb37b61526) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19  (7ffb37b639b9) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080]
    WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51  (7ff61bd6b5e1) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121]
    WindowsTerminal!AppHost::~AppHost+0x49  (7ff61bcf7179) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108]
    WindowsTerminal!wWinMain+0x279  (7ff61bced039) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199]
    WindowsTerminal!invoke_main+0x32  (7ff61be33592) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123]
    WindowsTerminal!__scrt_common_main_seh+0x12e  (7ff61be3343e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    WindowsTerminal!__scrt_common_main+0xe  (7ff61be332fe) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
    WindowsTerminal!wWinMainCRTStartup+0xe  (7ff61be3362e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17]
    KERNEL32!BaseThreadInitThunk+0x10  (7ffb4f6f1350) [clientcore\base\win32\client\thread.c @ 75]
    ntdll!RtlUserThreadStart+0x28  (7ffb503b1e78) [minkernel\ntdll\rtlstrt.c @ 1166]
-------------------------
Callstack for hr=80004002 - No such interface supported

    Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e  (7ffb1c21922e) [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35]
    Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::IUIElement>::get+0x58  (7ffa9d5ae1f0) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097]
    Microsoft_UI_Xaml!winrt::impl::event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>::~event_revoker<winrt::Windows::UI::Xaml::IUIElement,&winrt::impl::abi<winrt::Windows::UI::Xaml::IUIElement,void>::type::`vcall'{368}'>+0x28  (7ffa9d5abf18) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 5522]
    Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x24  (7ffa9d5f7278)
    Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14  (7ffa9d5f7234)
    Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64  (7ffa9d56adc4) [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874]
    Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c  (7ffb1c1b7cbc) [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697]
    Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242  (7ffb1c1b6752) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757]
    Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29  (7ffb1c1b6399) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493]
    Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0  (7ffb1c19e400) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891]
    Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1  (7ffb1c19db05) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925]
    Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1  (7ffb1c19add9) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039]
    Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f  (7ffb1c19a43b) [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105]
    Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3  (7ffb1c2f4b07) [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346]
    Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long  (7ffb1c3cc103) [onecore\external\sdk\inc\wrl\event.h @ 354]
    CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20  (7ffb4a456630) [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919]
    CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c  (7ffb4a40e214) [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11]
    CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae  (7ffb4a40e16e) [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1  (7ffb4a41d851) [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62]
    CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d  (7ffb4a41d50d) [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383]
    CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714  (7ffb4a41c784) [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee  (7ffb4a419e5e) [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb  (7ffb4a41938b) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214]
    CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90  (7ffb4a416a70) [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144]
    user32!UserCallWinProcCheckWow+0x4c3  (7ffb4f7faa63) [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282]
    user32!DispatchClientMessage+0x9c  (7ffb4f7fa42c) [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113]
    user32!__fnDWORD+0x3a  (7ffb4f807d4a) [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214]
    ntdll!KiUserCallbackDispatcherContinue  (7ffb50406964) [minkernel\ntos\rtl\amd64\trampoln.asm @ 607]
    win32u!ZwUserPeekMessage+0x14  (7ffb4d7d14d4) [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165]
    user32!_PeekMessage+0xb6  (7ffb4f802c66) [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814]
    user32!PeekMessageW+0x140  (7ffb4f802b80) [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176  (7ffb37b61526) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75]
    Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19  (7ffb37b639b9) [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080]
    WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51  (7ff61bd6b5e1) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121]
    WindowsTerminal!AppHost::~AppHost+0x49  (7ff61bcf7179) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108]
    WindowsTerminal!wWinMain+0x279  (7ff61bced039) [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199]
    WindowsTerminal!invoke_main+0x32  (7ff61be33592) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123]
    WindowsTerminal!__scrt_common_main_seh+0x12e  (7ff61be3343e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288]
    WindowsTerminal!__scrt_common_main+0xe  (7ff61be332fe) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331]
    WindowsTerminal!wWinMainCRTStartup+0xe  (7ff61be3362e) [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17]
    KERNEL32!BaseThreadInitThunk+0x10  (7ffb4f6f1350) [clientcore\base\win32\client\thread.c @ 75]
    ntdll!RtlUserThreadStart+0x28  (7ffb503b1e78) [minkernel\ntdll\rtlstrt.c @ 1166]

=========================
@$xamlstowed()                 : 5 ErrorContexts
    length           : 0x5
    [0x0]            : 0x16a129e4b80 : 0x80004002 in Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e [Type: ErrorContext *]
    [0x1]            : 0x16a129613b0 : 0x80004002 in Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e [Type: ErrorContext *]
    [0x2]            : 0x16a232dbb00 : 0x80004002 in Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e [Type: ErrorContext *]
    [0x3]            : 0x16a129df960 : 0x80004002 in Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e [Type: ErrorContext *]
    [0x4]            : 0x16a0726d260 : 0x80004002 in Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x6e [Type: ErrorContext *]
0:000> k
 # Child-SP          RetAddr               Call Site
00 (Inline Function) --------`--------     Windows_UI_Xaml!ctl::ComObjectBase::QueryInterfaceBase+0x9 [onecoreuap\windows\dxaml\xcp\components\com\comobjectbase.cpp @ 36] 
01 00000046`71d9e8f0 00007ffb`1c21920f     Windows_UI_Xaml!ctl::ComObject<DirectUI::ListView>::QueryInterface+0x11 [onecoreuap\windows\dxaml\xcp\components\com\inc\ComObject.h @ 36] 
02 00000046`71d9e920 00007ffa`9d5ff1d7     Windows_UI_Xaml!ctl::Details::WeakReferenceImpl::Resolve+0x4f [onecoreuap\windows\dxaml\xcp\components\com\weakreference.cpp @ 35] 
03 00000046`71d9e950 00007ffa`9d5aa933     Microsoft_UI_Xaml!winrt::weak_ref<winrt::Windows::UI::Xaml::DependencyObject>::get+0x3f [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 4097] 
04 (Inline Function) --------`--------     Microsoft_UI_Xaml!PropertyChanged_revoker::revoke+0x2a [C:\a\_work\1\s\dev\inc\CppWinRTHelpers.h @ 312] 
05 00000046`71d9e990 00007ffa`9d5f7266     Microsoft_UI_Xaml!PropertyChanged_revoker::~PropertyChanged_revoker+0x33 [C:\a\_work\1\s\dev\inc\CppWinRTHelpers.h @ 302] 
06 00000046`71d9e9c0 00007ffa`9d5f7234     Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers+0x12
07 00000046`71d9e9f0 00007ffa`9d56adc4     Microsoft_UI_Xaml!winrt::impl::heap_implements<NavigationViewItemRevokers>::`scalar deleting destructor'+0x14
08 (Inline Function) --------`--------     Microsoft_UI_Xaml!winrt::impl::root_implements<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IPropertyValue>::NonDelegatingRelease+0x5a [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 7325] 
09 (Inline Function) --------`--------     Microsoft_UI_Xaml!winrt::impl::root_implements<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IPropertyValue>::Release+0x5a [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 7206] 
0a (Inline Function) --------`--------     Microsoft_UI_Xaml!winrt::implements<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IPropertyValue>::Release+0x5a [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 7802] 
0b 00000046`71d9ea20 00007ffb`1c1b7cbc     Microsoft_UI_Xaml!winrt::impl::produce_base<winrt::impl::reference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,winrt::Windows::Foundation::IReference<enum winrt::Microsoft::UI::Xaml::Controls::NavigationViewDisplayMode>,void>::Release+0x64 [C:\a\_work\1\s\BuildOutput\Intermediates\x64\Microsoft.UI.Xaml\obj\Generated Files\winrt\base.h @ 6874] 
0c (Inline Function) --------`--------     Windows_UI_Xaml!ctl::release_interface_nonull+0x1a [onecoreuap\windows\dxaml\xcp\components\com\inc\ComUtils.h @ 152] 
0d 00000046`71d9ea50 00007ffb`1c1b6752     Windows_UI_Xaml!DirectUI::TrackerTargetReference::Clear+0x24c [onecoreuap\windows\dxaml\xcp\components\lifetime\lib\trackertargetreference.cpp @ 697] 
0e (Inline Function) --------`--------     Windows_UI_Xaml!DirectUI::TrackerPtr<IInspectable,1,0>::Clear+0xd [onecoreuap\windows\dxaml\xcp\components\lifetime\inc\TrackerPtr.h @ 267] 
0f (Inline Function) --------`--------     Windows_UI_Xaml!ctl::WeakReferenceSourceNoThreadId::RemovePtrValue+0x17e [onecoreuap\windows\dxaml\xcp\components\lifetime\inc\WeakReferenceSourceNoThreadId.h @ 233] 
10 00000046`71d9ead0 00007ffb`1c1b6399     Windows_UI_Xaml!DirectUI::DependencyObject::ClearPeerReferences+0x242 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 757] 
11 00000046`71d9eb10 00007ffb`1c19e400     Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeerCore+0x29 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 493] 
12 (Inline Function) --------`--------     Windows_UI_Xaml!DirectUI::DependencyObject::DisconnectFrameworkPeer+0x2e [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 547] 
13 (Inline Function) --------`--------     Windows_UI_Xaml!DirectUI::DependencyObject::EndShutdown+0x2e [onecoreuap\windows\dxaml\xcp\dxaml\lib\dependencyobject.cpp @ 639] 
14 00000046`71d9eb40 00007ffb`1c19db05     Windows_UI_Xaml!DirectUI::DXamlCore::ShutdownAllPeers+0x2a0 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1891] 
15 00000046`71d9ec10 00007ffb`1c19add9     Windows_UI_Xaml!DirectUI::DXamlCore::CommonShutdown+0x1d1 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 925] 
16 00000046`71d9ec80 00007ffb`1c19a43b     Windows_UI_Xaml!DirectUI::DXamlCore::DeinitializeInstance+0x1a1 [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 1039] 
17 00000046`71d9ecb0 00007ffb`1c2f4b07     Windows_UI_Xaml!DirectUI::DXamlCore::Deinitialize+0x8f [onecoreuap\windows\dxaml\xcp\dxaml\lib\dxamlcore.cpp @ 3105] 
18 00000046`71d9ece0 00007ffb`1c3cc103     Windows_UI_Xaml!DirectUI::WindowsXamlManager::XamlCore::Close+0xd3 [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 346] 
19 (Inline Function) --------`--------     Windows_UI_Xaml!DirectUI::WindowsXamlManager::EnqueueClose::__l2::<lambda_7e21289255aaaaf9af46034ad444c7af>::operator()+0x9 [onecoreuap\windows\dxaml\xcp\dxaml\lib\windowsxamlmanager_partial.cpp @ 298] 
1a 00000046`71d9ed40 00007ffb`4a456630     Windows_UI_Xaml!Microsoft::WRL::Details::DelegateArgTraits<long (__cdecl Windows::System::IDispatcherQueueHandler::*)(void)>::DelegateInvokeHelper<Microsoft::WRL::Implements<Microsoft::WRL::RuntimeClassFlags<2>,Windows::System::IDispatcherQueueHandler,Microsoft::WRL::FtmBase>,<lambda_7e21289255aaaaf9af46034ad444c7af> &,-1>::Invoke+0x13 [onecore\external\sdk\inc\wrl\event.h @ 354] 
1b 00000046`71d9ed70 00007ffb`4a40e214     CoreMessaging!Windows::System::DispatcherQueue::DeferInvokeCallback+0x20 [mincore\coreui\dev\dispatcherqueue\wrtdispatcherqueue.cpp @ 919] 
1c (Inline Function) --------`--------     CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$::__l2::<lambda_a81ff790741c2a62f2197c2561f5fe49>::operator()+0x1f [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22] 
1d 00000046`71d9eda0 00007ffb`4a40e16e     CoreMessaging!CFlat::SehSafe::Execute<<lambda_a81ff790741c2a62f2197c2561f5fe49> >+0x2c [CFlatCorlib\1.0.211005003\CFlatCorlib\SehSafe.inl @ 11] 
1e 00000046`71d9edd0 00007ffb`4a41d851     CoreMessaging!Microsoft::CoreUI::ActionCallback::ImportAdapter$+0xae [mincore\CoreUI\Dev\System\Api\IExportMessageSession.cs @ 22] 
1f (Inline Function) --------`--------     CoreMessaging!CFlat::DelegateImpl<Microsoft::CoreUI::ActionCallback,0,void __cdecl(void),long __cdecl(void *),0>::Invoke+0x26 [CFlatCorlib\1.0.211005003\CFlatCorlib\Delegate.h @ 337] 
20 00000046`71d9ee10 00007ffb`4a41d50d     CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCall::Callback_Dispatch+0x2d1 [mincore\CoreUI\Dev\System\Dispatch\DeferredCall.cs @ 62] 
21 00000046`71d9eed0 00007ffb`4a41c784     CoreMessaging!Microsoft::CoreUI::Dispatch::DeferredCallDispatcher::Callback_OnDispatch+0x46d [mincore\CoreUI\Dev\System\Dispatch\DeferredCallDispatcher.cs @ 383] 
22 (Inline Function) --------`--------     CoreMessaging!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchNextItem+0x4df [mincore\CoreUI\Dev\System\Dispatch\Dispatcher.cs @ 1095] 
23 (Inline Function) --------`--------     CoreMessaging!Microsoft::CoreUI::Dispatch::Dispatcher::Callback_DispatchLoop+0x582 [mincore\CoreUI\Dev\System\Dispatch\Dispatcher.cs @ 541] 
24 00000046`71d9ef80 00007ffb`4a419e5e     CoreMessaging!Microsoft::CoreUI::Dispatch::EventLoop::Callback_RunCoreLoop+0x714 [mincore\CoreUI\Dev\System\Dispatch\EventLoop.cs @ 692] 
25 00000046`71d9f090 00007ffb`4a41938b     CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DrainCoreMessagingQueue+0x3ee [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 780] 
26 (Inline Function) --------`--------     CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatch+0x10b [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 1135] 
27 (Inline Function) --------`--------     CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::OnUserDispatchRaw+0x167 [mincore\CoreUI\Dev\System\Dispatch\UserAdapter.cs @ 1077] 
28 00000046`71d9f110 00007ffb`4a416a70     CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::DoWork+0x2fb [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 214] 
29 00000046`71d9f1a0 00007ffb`4f7faa63     CoreMessaging!Microsoft::CoreUI::Dispatch::UserAdapter::WindowProc+0x90 [mincore\coreui\dev\system\Dispatch\UserAdapterCommonN.cpp @ 144] 
2a 00000046`71d9f210 00007ffb`4f7fa42c     user32!UserCallWinProcCheckWow+0x4c3 [clientcore\windows\core\ntuser\client\clmsg.cxx @ 282] 
2b 00000046`71d9f370 00007ffb`4f807d4a     user32!DispatchClientMessage+0x9c [clientcore\windows\core\ntuser\client\daytona\objfre\amd64\client.cxx @ 3113] 
2c 00000046`71d9f3d0 00007ffb`50406964     user32!__fnDWORD+0x3a [onecoreuap\restricted\windows\inc\ntuser\inc\ntcb.h @ 1214] 
2d 00000046`71d9f430 00007ffb`4d7d14d4     ntdll!KiUserCallbackDispatcherContinue [minkernel\ntos\rtl\amd64\trampoln.asm @ 607] 
2e 00000046`71d9f4b8 00007ffb`4f802c66     win32u!ZwUserPeekMessage+0x14 [onecoreuap\windows\core\umode\moderncore\objfre\amd64\usrstubs.asm @ 165] 
2f 00000046`71d9f4c0 00007ffb`4f802b80     user32!_PeekMessage+0xb6 [clientcore\windows\core\ntuser\client\ntstubs.cxx @ 814] 
30 00000046`71d9f530 00007ffb`37b61526     user32!PeekMessageW+0x140 [onecoreuap\restricted\windows\inc\private\core\ntuser\client\cltxt.h @ 756] 
31 00000046`71d9f5a0 00007ffb`37b639b9     Microsoft_Toolkit_Win32_UI_XamlHost!winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication::Close+0x176 [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\XamlApplication.cpp @ 75] 
32 00000046`71d9f630 00007ff6`1bd6b5e1     Microsoft_Toolkit_Win32_UI_XamlHost!winrt::impl::produce<winrt::Microsoft::Toolkit::Win32::UI::XamlHost::implementation::XamlApplication,winrt::Windows::Foundation::IClosable>::Close+0x19 [D:\a\1\s\Microsoft.Toolkit.Win32.UI.XamlApplication\x64\Release\Generated Files\winrt\Windows.Foundation.h @ 1080] 
33 00000046`71d9f660 00007ff6`1bcf7179     WindowsTerminal!winrt::impl::consume_Windows_Foundation_IClosable<winrt::TerminalApp::App>::Close+0x51 [D:\dev\public\terminal\src\cascadia\WindowsTerminal\Generated Files\winrt\Windows.Foundation.h @ 121] 
34 00000046`71d9f6c0 00007ff6`1bced039     WindowsTerminal!AppHost::~AppHost+0x49 [D:\dev\public\terminal\src\cascadia\WindowsTerminal\AppHost.cpp @ 108] 
35 00000046`71d9f700 00007ff6`1be33592     WindowsTerminal!wWinMain+0x279 [D:\dev\public\terminal\src\cascadia\WindowsTerminal\main.cpp @ 199] 
36 00000046`71d9f8e0 00007ff6`1be3343e     WindowsTerminal!invoke_main+0x32 [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 123] 
37 00000046`71d9f920 00007ff6`1be332fe     WindowsTerminal!__scrt_common_main_seh+0x12e [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
38 00000046`71d9f990 00007ff6`1be3362e     WindowsTerminal!__scrt_common_main+0xe [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331] 
39 00000046`71d9f9c0 00007ffb`4f6f1350     WindowsTerminal!wWinMainCRTStartup+0xe [d:\a01\_work\14\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp @ 17] 
3a 00000046`71d9f9f0 00007ffb`503b1e78     KERNEL32!BaseThreadInitThunk+0x10 [clientcore\base\win32\client\thread.c @ 75] 
3b 00000046`71d9fa20 00000000`00000000     ntdll!RtlUserThreadStart+0x28 [minkernel\ntdll\rtlstrt.c @ 1166] 

I can't repro this again, so feel free to ignore.

I suspect that this was the same build thing that caused the other crash. Note that there's no source linking for Microsoft_UI_Xaml!NavigationViewItemRevokers::~NavigationViewItemRevokers, but there is for everything else in MUX. Wild.

@zadjii-msft
Copy link
Member

zadjii-msft commented Feb 2, 2022

EDIT: this was a local build error. NO idea what happened here. I do not love that this was a possible state to get into. Please ignore me ☺️

@PankajBhojwani
Copy link
Contributor Author

I don't think the Inline thing worked for launch size

Did you expand the launch size expander?

@DHowett
Copy link
Member

DHowett commented Feb 2, 2022

I don't think the Inline thing worked for launch size

Did you expand the launch size expander?

right, inline means for the number box, not the Expander

@zadjii-msft
Copy link
Member

inline means for the number box, not the Expander

ah yep that makes sense. Derp.

<StaticResource x:Key="TabViewBackground"
ResourceKey="ApplicationPageBackgroundThemeBrush" />

<SolidColorBrush x:Key="UnfocusedBorderBrush"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change both of the UnfocusedBorderBrush resources as well? they should match the title bar. you can validate them by splitting a pane

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it works for closing a pane, but for opening a pane the background is actually transparent (this issue exists in main)

@DHowett
Copy link
Member

DHowett commented Feb 2, 2022

@msftbot make sure @zadjii-msft signs off

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Feb 2, 2022
@ghost
Copy link

ghost commented Feb 2, 2022

Hello @DHowett!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I'll only merge this pull request if it's approved by @zadjii-msft

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@DHowett
Copy link
Member

DHowett commented Feb 2, 2022

we may have to ship with that wonky dropdown.

can someone go through the entire settings page on (1) super narrow mode and (2) super wide mode?

@PankajBhojwani
Copy link
Contributor Author

we may have to ship with that wonky dropdown.

The wonky dropdown has been fixed!

can someone go through the entire settings page on (1) super narrow mode and (2) super wide mode?

I did and everything looked fine (except the actions/color schemes pages which we already know need follow up), but couldn't hurt to have another pair of eyes on it I guess

@lhecker
Copy link
Member

lhecker commented Feb 2, 2022

I haven't checked this PR out locally, but I can do that in about an hour. 🙂

@DHowett DHowett changed the title Fix more SUI issues Fix more SUI and Rejuvenated UI issues Feb 2, 2022
@ghost ghost merged commit 0a545b7 into main Feb 2, 2022
@ghost ghost deleted the dev/pabhoj/sui_centralize branch February 2, 2022 21:43
DHowett pushed a commit that referenced this pull request Feb 2, 2022
- The add new profile page now uses a dropdown rather than radio buttons
- Subheaders, breadcrumb bar, buttons etc are now all centralized when the window is maximized (so they all align with the expanders now)
- We no longer override the titlebar colors and instead use the xaml defaults (these still aren't great but at least we will get the fix automatically when it happens upstream)
- Breadcrumb bar no longer has a negative margin, so there's no weird overlap that happens when the window becomes small
- The number boxes for launch size and font size now use the `Inline` placement mode rather than compact, allowing modification to the number with fewer clicks
- Textboxes now have a greater max width so they can occupy more space in the expander if needed

(cherry picked from commit 0a545b7)
ghost pushed a commit that referenced this pull request Feb 15, 2022
This has been a saga.

Basically, any resources in `App.xaml` aren't going to be able to reference other theme-aware resources. We can't change the theme of the app at runtime, only elements within the app. So we can't use `ApplicationPageBackgroundThemeBrush` in app.xaml, because it will ALWAYS be evaluated as the OS theme version of that brush.

* regressed in #12326
* See also #10864
* #3917 CANNOT be fixed in the same way. We're lucky here that the TabView uses a `{ThemeResource TabViewBackground}` in markup to set the bg. We're not similarly lucky with the Pane one. 
* [x] closes #12356
* [x] Tested manually. You can confirm, my eyes are bleeding from the OS-wide light mode
DHowett pushed a commit that referenced this pull request Feb 16, 2022
This has been a saga.

Basically, any resources in `App.xaml` aren't going to be able to reference other theme-aware resources. We can't change the theme of the app at runtime, only elements within the app. So we can't use `ApplicationPageBackgroundThemeBrush` in app.xaml, because it will ALWAYS be evaluated as the OS theme version of that brush.

* regressed in #12326
* See also #10864
* #3917 CANNOT be fixed in the same way. We're lucky here that the TabView uses a `{ThemeResource TabViewBackground}` in markup to set the bg. We're not similarly lucky with the Pane one.
* [x] closes #12356
* [x] Tested manually. You can confirm, my eyes are bleeding from the OS-wide light mode

(cherry picked from commit 5ba0d61)
zadjii-msft pushed a commit that referenced this pull request Mar 3, 2022
- The add new profile page now uses a dropdown rather than radio buttons
- Subheaders, breadcrumb bar, buttons etc are now all centralized when the window is maximized (so they all align with the expanders now)
- We no longer override the titlebar colors and instead use the xaml defaults (these still aren't great but at least we will get the fix automatically when it happens upstream)
- Breadcrumb bar no longer has a negative margin, so there's no weird overlap that happens when the window becomes small
- The number boxes for launch size and font size now use the `Inline` placement mode rather than compact, allowing modification to the number with fewer clicks
- Textboxes now have a greater max width so they can occupy more space in the expander if needed
zadjii-msft added a commit that referenced this pull request Mar 3, 2022
This has been a saga.

Basically, any resources in `App.xaml` aren't going to be able to reference other theme-aware resources. We can't change the theme of the app at runtime, only elements within the app. So we can't use `ApplicationPageBackgroundThemeBrush` in app.xaml, because it will ALWAYS be evaluated as the OS theme version of that brush.

* regressed in #12326
* See also #10864
* #3917 CANNOT be fixed in the same way. We're lucky here that the TabView uses a `{ThemeResource TabViewBackground}` in markup to set the bg. We're not similarly lucky with the Pane one. 
* [x] closes #12356
* [x] Tested manually. You can confirm, my eyes are bleeding from the OS-wide light mode
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Marked for automatic merge by the bot when requirements are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants