Idea was to write small app which will have one combo box where user will be able to change template for some list of buttons.

Instead I just made one project where I merged knowledge from this, this, this, and this article.

That is just for my future reference. Example project you can download from here.