Binding Troubles

Topics: Prism v4 - Silverlight 4
Sep 12, 2011 at 12:11 AM

Hi There,

After 7 hours of debugging I have decided to resort to the forum here to try hunt for an answer.
I have a Silverlight project which I am a lot of the Prism and Unity goodies. I have one specific view and viewmodel,
which implements the following ViewModelBase, INavigationAware, INonLinearNavigationObject, IPageTitle, IRegionMemberLifetime

This is the only piece in my project that uses all the above. The problem is that the view bindings do not work.
I have verified that the datacontext is setup and does in fact contain the viewmodel class. Also strangely enough,
I do not get any bindingexpression path errors. If I remove all of the interfaces then it works fine. All the other views in
the module work perfectly.

Any help will be great

 

Thank You

 

Louis Lewis

Developer
Sep 12, 2011 at 8:52 PM

Hi Louis,

It would be helpful if you could provide us with a repro-sample application that portrays this problem, so we can help you find the cause and a possible workaround for your issue.

Regards,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Sep 13, 2011 at 6:35 PM

Check if your view models implement INotifyPropertyChanged interface.

See here http://msdn.microsoft.com/en-us/library/ms229614.aspx on how to do it.

mityay.

Sep 14, 2011 at 6:57 AM

Hi Guys,

 

Thanks for the replies. But I found the problem.
I had a BusyIndicator before the Grid(LayoutRoot) and for some reason because of this the above problem was happening.
Once I removed the BusyIndicator everything came right.

Thanks again

Louis