Hi all,
I am knocking together a WPF demo for our department at work to show them the advantages of WPF whilst trying to adhere to our development standards (dependency injection and developing objects to an explicit interface).
I have come to a bit of a wall now. I am implementing the View using the MVVM design pattern and I need to update a TextBlocks Text property every time the property on the View Model (VM) is updated. For this I would define the VM property as a Dependency Property and bind the TextBlocks Text property in the View to it.
Now the MV property is on my interface and is (as per our development standards) explicitly defined. From the View I bind the Text property of the TextBlock in the View to the Dependency Properties property (not the static part) but this does not update my View when the dependency properties value changes (I know how to bind to an explicit interface so this is not the problem as far as I can see).
Any help would really be appreciated. Can I use Dependency Properties with Explicit Interfaces? If I can how, if not have you got any ideas on what I can do in this situation?
Thank you for reading and I look forward to your responses.
Adam