I have recently parametrized my ViewModel\'s contructor. Before that, I was doing this in my window:
Use an ObjectDataProvider if you want to specify constructor parameters:
A string parameter 42