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
When nesting a ListView inside a TabControl, it can exhibit strange resize behavior when scrolling vertically. Since RC2 the ListView seemingly wants to use as little horizontal space as possible but this leads to usability issues as can be seen below.
Reproduction Steps
Create a .NET 9 WPF application and use the following markup in MainWindow.xaml:
using System.Collections.ObjectModel;using System.Windows;namespace Fluent_ListViewScrollBarJumps;/// <summary>/// Interaction logic for MainWindow.xaml/// </summary>publicpartialclassMainWindow:Window{publicMainWindow(){
InitializeComponent();voidAdd(intmax){varn= Random.Shared.Next(1, max);
Items.Add(LoremIpsum[..n]);}for(vari=0;i<1_000;i++){if(i <= 100){
Add(10);}elseif(i <= 500){
Add(50);}else{
Add(120);}}DataContext=this;}privateconststringLoremIpsum="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";publicObservableCollection<string> Items {get;}=[];}
Expected behavior
The vertical scrollbar stays at the same horizontal position (here the ThemeMode attribute was removed).
Actual behavior
The vertical scrollbar jumps to the right when scrolling down.
Regression?
This defect was introduced in the switch between .NET 9 RC1 and RC2.
Known Workarounds
No response
Impact
Makes ListView inside a TabControl unusable.
Configuration
Property
Value
SDK
.NET 9 RC2
OS Name
Microsoft Windows 11 Pro
Version
10.0.22631 Build 22631
System SKU
Surface_Pro_8_1983
Other information
No response
The text was updated successfully, but these errors were encountered:
bent-rasmussen
changed the title
Fluent Theme: ListView inside TabControl has erratic resize behavior when scrolling vertically
Fluent Theme: ListView inside TabControl has erratic resize behavior when scrolling vertically
Oct 11, 2024
Description
When nesting a
ListView
inside aTabControl
, it can exhibit strange resize behavior when scrolling vertically. Since RC2 theListView
seemingly wants to use as little horizontal space as possible but this leads to usability issues as can be seen below.Reproduction Steps
Create a .NET 9 WPF application and use the following markup in
MainWindow.xaml
:In
MainWindow.xaml.cs
code-behind, use this code:Expected behavior
The vertical scrollbar stays at the same horizontal position (here the
ThemeMode
attribute was removed).Actual behavior
The vertical scrollbar jumps to the right when scrolling down.
Regression?
This defect was introduced in the switch between .NET 9 RC1 and RC2.
Known Workarounds
No response
Impact
Makes
ListView
inside aTabControl
unusable.Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: