Hello All.
Phew, I have been cracking my head with this problem.
Here is my dilemma: (Code is written in MVVM)
BACKGROUND
1. Communication layer code, starts up a WCF service, to make callback to a Java server. Also acts as a service, to receive calls from the Java server. It maintains changes made to my MODEL, initiated from the Java side.
2. Common layer code, contains my MODEL class, and other common code that should be available across all different projects.
3. Implementation Layer code, contains my ModelView and my View. I have a AppEntryPoint.xml that is an empty Window. In this window, I have a placeholder, and then I have a UserControl, that is bound to my ViewModel. When the app starts up, the UserControl is assigned to the placeholder in the window.
4. When the application is closed (by clicking 'X'), the app doesn't close, but sits in the system tray.
NOW, THE PROBLEM:
The problem I am facing now is that the java server now wants to send me a message, and then based on this message, I should SHOW or HIDE my window. So, my MODEL is available across all my different projects in the solution, but how do I get my Window, in AppEntryPoint.xml, or even the UserControl that is loaded in the AppEntryPoint, to REACT upon these changes.
Oh, I hope I stated my problem clearly. If you need more info please just ask. I am thinking that the solution will have something to do with event handlers, but I am no expert at the subject, so I will appreciate any input I can get.
Thanks All!
:)