I have created a UserControl
and inside it defined a dependency property Label
. When I refer it in a control I get the error the The member "Label" is not recognised or is not accessible
. What I don't understand is that it works perfect on windows phone but after porting the app to windows 8 it gives this error. Is there something different to be done for windows 8 user controls? Please help.
Asked
Active
Viewed 6,879 times
15

Milan Aggarwal
- 5,104
- 3
- 25
- 54
-
can you add your xaml to this question? – Typist Nov 21 '12 at 18:17
-
Will need to see a code snippet to help. Dependency properties done correctly for Windows Store apps should work just fine. – Jeremy Likness Nov 21 '12 at 19:46
1 Answers
19
According to http://leventoz.wordpress.com/2012/03/11/moving-a-windows-phone-app-to-windows-8-a-case-study-part-2/
I just closed my .xaml file and the error went away. Bug with Visual Studio it says. But its not confirmed. Still it works for me.

Milan Aggarwal
- 5,104
- 3
- 25
- 54
-
Thank you! Similar problem here: worked in WPF, but not in Win8. I've lost a day and a half on this. – Tristan Oct 04 '13 at 21:01
-
3Ran into the same issue. Closing and opening the .xaml was not enough, but restarting VS did it. – denver Mar 28 '15 at 02:30