I have a Grid that contains User Controls, i'm using this Grid as a Matrix and i populate it with those User Controls.
I want to have the first column (ColumnDefinition) be frozen (from scrolling) of this Grid and so as the first Row (RowDefinition).
I will be so greatfull if you guys have any idea about this issue
This is what i want as a result
After long hours of searching on google about this issue i found the solution ! also the answer of @voddy was helpful.
So the trick is to have a separed grid for the fixed Row (Header), same thing for the fixed Column and the Grid cells, so in the end we will be dealing with 3 Grid's witch every one of it have a ScrollViewer.
then we have to put them into a DockPannel and sychronize scrolling event using ScrollChanged Event and Horizontal and vertical Offsets .
may be you can use a dockpanel for that purpose and have many grids positioned inside a dockpanel as you desire. It's difficult to suggest further as your requirement is not very clear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With