Controls as Grid Line in WPF with MVVM pattern

07 June 2020

Category: Mini

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:

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.

Cheers!

Petr