1

Closed

mvvmpropdp macro uses UIMetaPropertyData class?

description

I just created a user control dependency property for a Windows Phone 8 project. I used the mvvmpropdp macro to create it. Everything was fine except the default value for the dp was being set using the UIPropertyMetadata class instead of PropertyMetadata. UIPropertyMetadata does not appear to be in the WP8 namespace. I changed it to PropertyMetadata and everything was fine.

Is UIPropertyMetadata supposed to be used in this context?
Closed Mar 14 at 4:21 PM by lbugnion

comments

lbugnion wrote Mar 14 at 4:20 PM

mvvmpropdp is for WPF (full .NET version). For Silverlight and Windows Phone, please use mvvmslpropdp.

Thanks
Laurent

roschler wrote Mar 14 at 5:43 PM

Thanks Laurent.