There is a custom control called TestCustomControl, it inherits from Control and it has a control template that is defined in generic.xaml.
It's the content of the Main Page.
If I mark it as public, it all works fine. But if I mark it as internal, it throws an exception: Invalid attribute value local:TestCustomControl for property TargetType. [Line: 74 Position: 12].
And this only happens in Windows Phone dev environment, I tried the similar thing in WPF and it works.
How can I mark a custom control as internal and use it in the main page in WP7?
Thanks
note: when I was using it in xaml, it throws exception. then I tested it by creating the control in code-behind and then add it to the logic tree, it throws exception too.