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
public partial class TestModel : ObservableRecipient
{
[ObservableProperty]
public partial string Title { get; set; } = "Test Title";
[ObservableProperty]
public partial DateTimeOffset? CompletedDate { get; set; } = DateTimeOffset.Now;
[ObservableProperty]
public partial User? User { get; set; } = new User();
}
public partial class User :ObservableRecipient
{
[ObservableProperty]
public partial string Name { get; set; } = "Test User";
}
public sealed partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
public partial class MainViewModel : ObservableRecipient
{
public MainViewModel()
{
TestItems =
[
new TestModel { Title = "Task 1", CompletedDate = DateTimeOffset.Now.AddDays(-1), User = new User { Name = "User 1" } },
new TestModel { Title = "Task 2", CompletedDate = DateTimeOffset.Now.AddDays(-2), User = new User { Name = "User 2" } },
new TestModel { Title = "Task 3", CompletedDate = null, User = new User { Name = "User 3" } },
];
}
[ObservableProperty]
public partial List<TestModel> TestItems { get; set; }
}
Expected behavior:
The row details should follow the matching parent.
Screenshots:
Here's a video of it happening. The row details template includes the completed date and Task 3 doesn't have a completed date but if you re-sort, it get's one of the other tasks' completed date:
Description:
If rows have a detail template and you open one then sort by a column, sometimes the detail template will be re-assigned to the wrong header.
Steps to Reproduce:
Create a table with a RowDetailsTemplate and another column header. Then expand one and sort. Here's some code that I used to reproduce this behavior:
Expected behavior:
The row details should follow the matching parent.
Screenshots:
Here's a video of it happening. The row details template includes the completed date and Task 3 doesn't have a completed date but if you re-sort, it get's one of the other tasks' completed date:
20260317-1342-06.5841508.mp4
Environment: