locked
How do you programatically create a TextBox in a WinRT C++ Direct3D app?

    Question

  • I created a new project in VS2012 on Windows 8: Visual C++ | Windows Metro Style | Direct3D App.

    This by default creates a working D3D app with a main app class Direct3DApp1 that derives fromWindows::ApplicationModel::Core::IFrameworkView.

    I need to programatically create a Windows::UI::Xaml::Controls::TextBox 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.

    How can I overlay a TextBox over the Direct3D graphics that allows the user to pop the keyboard and enter text?

    A fully working VS2012 solution that extends the Direct3D App default project would be great. Thanks!

    Tuesday, September 4, 2012 5:04 PM

Answers