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
In a DataGrid, if you add an item to it,
that has a sub list property List<string> MyUrlList {get; set;}
with some urls setted and binded to a DataGridTemplateColumn > SplitButton > MenuFlyout > ItemsSource,
it loads the row correctly, and the SplitButton.Flyout shows the list of 2 items.
BUT, if you remove the row item from the DataGrid and replace it with another one,
the first row in the DataGrid updates correctly each cell except for
the SplitButton.Flyout that is still pointing
to the list of the first element ever loaded in that position of the DataGrid,
instead of refreshing it.
DataGrid got the update notification and updated the rest of the values,
but DataGrid didn't notify the child SplitButton.Flyout to update it's ItemsSource.
This is a nasty bug because everything looks like it works but then the links and data inside are referencing another person/object!
Another way to put it into words is that the Dynamic MenuFlyout "popup" doesnt get refreshed when it is placed inside a DataGrid's row that has loaded other rows before, then removed the rows and then added new rows.
Describe the bug
In a DataGrid, if you add an item to it,
that has a sub list property
List<string> MyUrlList {get; set;}
with some urls setted and binded to a
DataGridTemplateColumn > SplitButton > MenuFlyout > ItemsSource
,it loads the row correctly, and the SplitButton.Flyout shows the list of 2 items.
BUT, if you remove the row item from the DataGrid and replace it with another one,
the first row in the DataGrid updates correctly each cell except for
the
SplitButton.Flyout
that is still pointingto the list of the first element ever loaded in that position of the DataGrid,
instead of refreshing it.
DataGrid got the update notification and updated the rest of the values,
but DataGrid didn't notify the child
SplitButton.Flyout
to update it'sItemsSource
.This is a nasty bug because everything looks like it works but then the links and data inside are referencing another person/object!
To Reproduce
AXAML Example:
Expected behavior
No response
Avalonia version
11.2.3
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: