나의 개발일지
VisualStudio 2022 WinUi 3 윈도우 여러개 디버깅 오류(multi window debug Error In App.xaml.cs) 본문
어플리케이션/WinUi(C#)
VisualStudio 2022 WinUi 3 윈도우 여러개 디버깅 오류(multi window debug Error In App.xaml.cs)
인공지능싱글톤 2023. 12. 28. 19:00에러 예시
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.Activate();
m_window = new MainWindow();
m_window.Activate();
}
경고 메시지
디버거가 연결되어 있지만 이 처리되지 않은 예외를 디버깅하도록 궁성되어 있지 않습니다. 이 예외를 디버깅하려면 현재 디버거를 분리하십시오.
해결 방법
도구 => 옵션
디버깅 => XAML 핫 다시 로드 => 앱 내 도구 모음 사용 (해제)
WinUI3 in Desktop template App crashes when activating two Windows in App.xaml.cs · Issue #9008 · microsoft/microsoft-ui-xaml
Describe the bug VisualStudio 2022 tries to attach another debugger when App.xaml.cs tries to activate two Windows: protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs arg...
github.com
Visual Studio 2022, 2019 live visual tree(비주얼 스튜디오 2022, 2019 라이브 시각적 트리) 지우기(wpf 실행시
비주얼 스튜디오 2019에서 wpf프로젝트를 실행하면 Default로 아래처럼 라이브 시작적 트리가 상단바에 나타납니다. 기존에 2015에서는 도구>옵션>디버깅>일반 항목아래에서 XAML용 UI 디버깅 도구 사
retromakers.tistory.com
'어플리케이션 > WinUi(C#)' 카테고리의 다른 글
WinUi 3 Full Custom Window And TitleBar (0) | 2024.01.03 |
---|---|
WinUi 3 마우스로 창 이동 (0) | 2023.12.22 |
WinUi 3 포커스(focus 비슷한)? 확인 (0) | 2023.12.22 |
WinUi 3 새로운 창 만들기 (0) | 2023.12.22 |
WinUi 3 GridView 사용법 (0) | 2023.12.13 |