I recently asked a long question about Assigning ViewModels to UserControls at runtime and at design time. It was long because the similar questions I found on SO sadly ended up with me more confused! Luckily the first answer was much simpler. It seemed useful (to me and thus possibly to others) to take the simple answer and build it into a whole sample. This seems useful partly to test that it works, partly so I have a reference to look back to next time I do this, and partly as I have a nagging doubt about the answers use of
d:DataContext that I can expand on in the write up of the sample. When I come to post the sample and its explanation as an additional answer to my own question I am faced with the SO warning:
If you need to add details to your question, use the edit link under your question.
That is what I am doing, but adding these details to the question, as opposed to adding them as a new answer would have made a long question way too long.
What is the right thing to do in these circumstances?