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
Replace the albums list view in the CleanWindowDemo.xaml with an equivalent data grid
Open and close the CleanWindowDemo
Expected behavior
When the parent is unloaded the memory is liberated
Actual behavior
The CleanWindowDemo window is retained in memory via the grid and the DataGridColumnStylesHelperExtension (see screenshot below)
Repeating the same steps with the mah:DataGridHelper.ColumnStylesHelper="{x:Null}" and the problem no longer occurs
Describe the bug
The DataGridColumnStylesHelperExtension is attached but never detached from the grid, leaving a memory leak with the Columns.CollectionChanged handler. This causes the whole window that is hosting the data grid to remain in memory.
Steps to reproduce
Expected behavior
When the parent is unloaded the memory is liberated
Actual behavior
The CleanWindowDemo window is retained in memory via the grid and the DataGridColumnStylesHelperExtension (see screenshot below)
Repeating the same steps with the
mah:DataGridHelper.ColumnStylesHelper="{x:Null}"
and the problem no longer occursEnvironment
Screenshots
The text was updated successfully, but these errors were encountered: