For some time now, declarative languages have taken over the development of software for creating graphical user interfaces. The most obvious examples are the framework WPF that uses XAML (eXtensible Application Markup Language) as a declarative language and the Qt framework with its Qt Markup Language (QML) .
Unlike Qt that does not publicly expose the code (classes) responsible for the effective execution of the interface, forcing the use of QML in the new GUI style (QtWidgets is the opposite) and does not allow an imperative programming mode instead of declarative (at least it does not allow doing 100% in code), WPF allows two programming modes: 1) declaratively through XAML, which is the most used mode and 2) imperative / object-oriented programming with code across the exposed classes, after all XAML is all built on top of existing classes, even counting with auxiliary classes to convert values from XAML to code. Roughly there is a 1: 1 relationship between classes and their members and the XAML code tags and their attributes.
Although ostensibly demonstrated that XAML should be used primarily - this has several advantages - and even some people believe that it is the only form, documentation, WPF books, and some specific up-to-date articles on the subject (en) (also here and SO original ) clearly indicate the possibility of using only non-declarative programming.
I have software that generates all the on-the-fly screens through code. Adapting this software to Windows 8, it would even be absurd at runtime to generate the XAML for later the framework "convert to code" to run.
I do not know the technology well and I do not know if it would be worth learning for much later to find out if it will not meet my need.
I have looked extensively on the internet in general and on specific websites if this is also possible and found nothing. I could not find anything to indicate that it is possible or even that it is not. I was not able to find an example even showing only code. Surely I found a lot of code that supports WinRT's XAML but nothing that indicates that 100% of the interface can be done without XAML.
My question is whether there is a possibility of using WinRT for GUI building without using any XAML, only with code, and of course, where can I find information / documentation about it, if possible with examples. In other words, is 100% of the code responsible for building and interacting the GUI exposed to the programmer? Some examples here would be very welcome.
The usefulness of XAML is not under discussion. For this specific case would be an exaggeration.