I have a datagrid that has its column width set to "Auto". When the datagrid is loaded the columns are the correct size. However, when I change the window width to a size smaller than the datagrid it resizes the columns in order to try and fit everything in the datagrid. When I expand the window size back to full size all the datagrid columns are no longer sized to the content but instead are all set to the same width as if the width is now set to "*".
Is there a way to prevent this from happening? I have tried CanUserResizeColumns="False" and setting the width of the column to a hard coded value.
I am also using materialdesigninxaml, not sure if this is causing this?