As far as I know, using the [WebHostHidden] attribute makes the class invisible to WinRT HTML / JavaScript projects.
That's right: this attribute hides the type in the JavaScript projection, so from JavaScript it looks like the type does not exist.
Does this mean that I cannot create a control in C ++ / CX that can be used in JavaScript?
You cannot use XAML controls with JavaScript period. When using JavaScript, the user interface is created using HTML, not XAML.
James McNellis
source share