15

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.

Milan Aggarwal
  • 5,104
  • 3
  • 25
  • 54

1 Answers1

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
  • 3
    Ran into the same issue. Closing and opening the .xaml was not enough, but restarting VS did it. – denver Mar 28 '15 at 02:30