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
Bug: TabView content disappears after dragging. #2455
Comments
@dpaulino I don't see this issue in XamlControlsGallery. Do you have a style for TabViewItem ? Is there something else different about your app ? Can you see if you can repro it in a blank uwp app and if so can you share the repro ? |
@ranjeshj Here's a sample app with full repro instructions and video in the readme: https://github.com/dpaulino/tabview-content-disappearing repro video https://streamable.com/c4nbil Repro steps
|
The main difference between the two tabviews is that the broken tabview uses |
It looks like we are setting the content of the tabviewitem to null when it get's dropped onto the TabView again. That is definitely a bug. |
@chingucoding do you already have context on the fix? If so do you want to tackle it? |
@StephenLPeters Looking at the code, there does not seem to be any change of a TabViewItems content inside the TabView control, but I can take a closer look when exactly the values changes. |
So I've added a callback change to the TabViewItem's content property, and the stacktrace for setting the content to null is this:
So maybe this is ListView interfering here? Or is this something even further down the UI stack? |
@chingucoding can you right click, say show external code and load symbols for windows.ui.xaml and see if that gives you a better stack ? |
Using show external code, I get the following stacktrace:
|
Still missing symbols. @RBrid can you help investigate this issue ? |
A few observations:
|
BTW, stacktrace for when the Content gets set to null:
|
I set up a tabview by binding an observable collection to the control's
TabItemsSource
. I then tried dragging tabs around, but the content disappears after dragging. I'm not sure if this is a bug or if I'm just not using the control properly. Can someone help?Video: https://streamable.com/htc4sp
WinUI version: 2.4
Windows version: Windows 10 2004 Build 19041.264
The text was updated successfully, but these errors were encountered: