The above screenshots represent the same application and code except that the first one is built with .NET 9 using Fluent theme and the second one is built with .NET 8.
I am wondering if I am missing something here or if it's a bug.
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DataContext = new MainViewModel();
}
}
MainViewModel.cs
public class MainViewModel
{
public class Car
{
public string? Make { get; set; }
public string? Model { get; set; }
}
public ObservableCollection<Car> Cars { get; set; } = [];
public MainViewModel()
{
Cars.Add(new Car() { Make = "Toyota", Model = "Corolla" });
Cars.Add(new Car() { Make = "Honda", Model = "Civic" });
}
}
Reproduction Steps
Create a WPF project with .NET 9 + Fluent theme and add a ListView with some column headers.
Description
The above screenshots represent the same application and code except that the first one is built with .NET 9 using Fluent theme and the second one is built with .NET 8.
I am wondering if I am missing something here or if it's a bug.
Thank you
MainWindow.xaml
MainWindow.xaml.cs
MainViewModel.cs
Reproduction Steps
Create a WPF project with .NET 9 + Fluent theme and add a
ListView
with some column headers.Expected behavior
ListView in Fluent style.
Actual behavior
No ListView.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
.NET 9.0.100 VS 2022 17.12 Windows 11 24H2 x64
Other information
No response