What your asking for is a perfect candidate for dependency properties :)
When you create properties on a class you have the choice to make them ordinary properties or a dependency property (introduced in Silverlight 2.0 and previously existing in WPF). The reason you would want to make a property into a dependency property is so that it can be databound to (as your probably aware of) In the case of wanting to listen to a property if it changes you would want to implement the INotifyPropertyChanged class... The following like is a good post to explain databinding , it talks about binding ways, value converters, property changed notifications etc.. Read it and let me know if your still confused [http://www.u2u.info/Blogs/Peter/Lists/Posts/Post.aspx?ID=271]http://www.u2u.info/Blogs/Peter/Lists/Posts/Post.aspx?ID=271 =============================================== Hmm.. Nope, dont' have any depdenceny properties in my project... Btw: Have another data binding question: I wan't to trigger an animation when a property on the databound object changes. Since we dont have triggers I have to do this in code, but I can't find a way to "hook" the event to the DataContext object... So, when ever a property on my data context object changes I wan't to run code to check if I need to run any animations... Any suggestions? Can't find a "ondatabinding" or "ondatacontextchanged" event to hook it up... On Fri, May 2, 2008 at 12:20 PM, Jose Fajardo < [mailto:[EMAIL PROTECTED]@liquidlounge.com.au >wrote: It sounds suspiciously related to dependency objects.. Does your usercontrols implement it's bindable properties as dependency properties? ===================================================== I'm doing some Silverlight databinding, and get a strange message in the Output window when running in debug mode: BINDING: Can't convert type myFosters.SilverlightOrder to type System.Windows.DOWrapper BINDING: Can't convert type myFosters.SilverlightOrder to type System.Windows.DOWrapper BINDING: Can't convert type myFosters.SilverlightOrder to type System.Windows.DOWrapper BINDING: Can't convert type myFosters.SilverlightOrder to type System.Windows.DOWrapper So basically I create a custom control for each SilverlightOrder and bind it... I tried googeling for System.Windows.DOWrapper - No hits... Any ideas? The app runs fine, and I can bind to properties on the SilverlightOrder object inside the OrderStatusLine control, but I still want to figure out what that message means. cheers, Jonas ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by [http://mailenable.com]mailenable.com - List managed by [http://www.readify.net]www.readify.net ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by [http://mailenable.com]mailenable.com - List managed by [http://www.readify.net]www.readify.net ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net