You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unzip, build and run attached TabViewCrash project
Click on 'Navigate Forward from MainPage to TestPage' button.
There would be databound TabView with "Tab 1" and "Tab 2" tabs,
and another not databound one with "Tab 11" and "Tab 12" tabs.
Note that width of tabs is not equal - separate issue.
Click on 'Navigate Backward from TestPage to MainPage' button.
Click on 'Navigate Forward from MainPage to TestPage' button again
Crash in TabView::OnListViewLoaded for databound TabView.
If first databound TabView would be commented out - there would be no crash, but tab count of second TabView would be duplicated.
Expected behavior
Results of second navigation to TestPage results should be the same as results of first navigation, i.e.
there should be databound TabView with "Tab 1" and "Tab 2" tabs,
and another not databound one with "Tab 11" and "Tab 12" tabs.
Faced the same problem. The TabItems Collection seems to behave weirdly. TabItems.Clear() generates error : Attempted to read or write protected memory. Any update on this issue?
Describe the bug
TabView crashed on second Loaded event if databound, duplicates count of tab items if not databound.
Steps to reproduce the bug
TabViewCrash.zip
There would be databound TabView with "Tab 1" and "Tab 2" tabs,
and another not databound one with "Tab 11" and "Tab 12" tabs.
Note that width of tabs is not equal - separate issue.
Crash in TabView::OnListViewLoaded for databound TabView.
If first databound TabView would be commented out - there would be no crash, but tab count of second TabView would be duplicated.
Expected behavior
Results of second navigation to TestPage results should be the same as results of first navigation, i.e.
there should be databound TabView with "Tab 1" and "Tab 2" tabs,
and another not databound one with "Tab 11" and "Tab 12" tabs.
Screenshots
Version Info
NuGet package version:
Microsoft.UI.Xaml 2.2.190822001-prerelease
Additional context
Note, that page with TabView had NavigationCacheMode=Required, that caused unloading and reloading without destruction.
The text was updated successfully, but these errors were encountered: