title: How do you programatically create a TextBox in a WinRT C++ Direct3D app?
body: <p>I created a new project in VS2012 on Windows 8: <strong>Visual C++ | Windows Metro Style | Direct3D App</strong>.</p>
  
  <p>This by default creates a working D3D app with a main app class <code>Direct3DApp1</code> that derives from <code>Windows::ApplicationModel::Core::IFrameworkView</code>. </p>
  
  <p>I need to programatically create a <code>Windows::UI::Xaml::Controls::TextBox</code> and somehow insert it into this view. This appears to be easy to do in other project types that define XAML, but this Direct3D App project type does not have XAML.</p>
  
  <p><strong>How can I overlay a TextBox over the Direct3D graphics that allows the user to pop the keyboard and enter text?</strong> </p>
  
  <p>A fully working VS2012 solution that extends the <code>Direct3D App</code> default project would be great. Thanks!</p>