Hi everyone,
this use-case wasn’t so difficult, but it contained a few noticeable challenges. I just wanted to dynamically create a Grid with
controls as cell elements. At first look, it seems so simple :D And in essence, it is. You just need to watch for couple of things:
It’s necessary to generate the grid properly. I found the ideal approach in creating a completely new grid and not updating the existing one, because
updating is prone to errors.
It’s not as trivial to provide scrollbars for Grid as I thought :P
Making my own implementation of IntegerUpDown. This proves the point that if you are able to do something, do it. I decided to create my own,
because I got fed up with licensing of controls libraries. Their creators well deserve to be paid for their work, but for projects like this
it’s an overkill to use licensed libraries.
I hope this could help you on your path to conquer WPF. And as usual, there is a link to the repo with the project. It’s a slightly
bigger project, so I decided to not C&P files. The post would be too long.