-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The app crashes when I set CanTearOutTabs="True" on the TabView #10040
Comments
I can confirm this issue. When you start to drag a tab it crashes immediately. |
I've also encountered this. |
Same here, this crashes my entire app. My app runs as Admin but as stated by the doc, it is supported. so why the crash! Using latest version of Windows Apps SDK. <TabView CanTearOutTabs="True">
<TabView.TabItems>
<TabViewItem Header="1">
<TabViewItem.IconSource>
<SymbolIconSource Symbol="Placeholder" />
</TabViewItem.IconSource>
</TabViewItem>
<TabViewItem Header="2">
<TabViewItem.IconSource>
<SymbolIconSource Symbol="Placeholder" />
</TabViewItem.IconSource>
</TabViewItem>
</TabView.TabItems>
</TabView> |
You need to do more than just set the property to We're demoing how to do this in the "What's New in WinUI and Windows App SDK 1.6" session tomorrow at .NET Conf. In the meantime, see the sample update in the WinUI Gallery here: microsoft/WinUI-Gallery#1629 |
FYI: I'd used the changes in that gallery pull request to try out the tear off tabs feature, and while it was useful I did need to make a few changes to the code. The updated code is in the repro project attached to #10155 It may be worth taking a look. If I remeber correctly the main problem was if you had two windows both containing tab views and in a single drag operation you tear out a tab from the first window. Then move the torn out window over the second windows tab headers (the torn out window closes and the tab is transfered to the second window's tab view). Then while still holding down the left mouse button continue dragging the tab out of the second window to create another tear out. That fails because the second window hasn't created that tear out window. |
Describe the bug
When I start the program and select one of the tabs, the program crashes.
Steps to reproduce the bug
Create a new project with "Blank App, Packaged (WinUI 3 in Desktop)".
Edit MainWindow.xaml like this:
Expected behavior
No response
Screenshots
No response
NuGet package version
Windows App SDK 1.6.1: 1.6.240923002
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 22H2 (19045, 2022 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: