In a ListBox
I have a ItemContainer\'s IsSelected
property bound to my ViewModel\'s IsSelected
property using
Specifying d:DataContext="{d:DesignInstance nmspc:Clz}"
with other attributes of Style
tag didn't help me: R# / IntelliSense really stopped highlighting properties I was binding to but the designer also showed me an error message instead of the view.
The trick I found out is to specify
inside the Style
tag. And it appeared to be so universal that it answers another question, about using interfaces as d:DataContext
.
Here is my answer to that question with a small example: https://stackoverflow.com/a/46637478/5598194