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
@andrewwong0893 This is not particularly an issue with the MaterialDesignInXAML library, the same behavior can be observed with the default style of the DataGrid. The "scroll bar column" is actually not a column at all, it is an empty area in the ScrollViewer template. If you had both a horizontal and a vertical scrollbar, you would also have a small square in the bottom right hand corner with a similar empty area.
I believe your best option would be to write a custom template for the DataGrid. The current MDIX template seems to be very much based on the default WPF template for the DataGrid. You should be able to create a template where the ScrollViewer only encapsulates the rows, and thereby avoid the "scroll bar column". However, this comes at the price that the ScrollViewer (width) will eat some of the available real-estate of the right-most column, so there are caveats to this approach.
Thought so.
My way around it has to create a dummy grid with the same color and height as the header and place it behind the grid. That was my simplest solution
Bug explanation
I'm not sure whether this is a bug or not but I have a DataGrid where I have formatted the column headers to a generic style that is consistent:
When I load a bunch of data to my grid, a ScrollViewer will automatically appear. However, the column where the scrollbar is placed is not stylized.
Is there a way for me to bring the style over to the scroll bar column?
Version
5.0.0
The text was updated successfully, but these errors were encountered: