using namespace Windows::UI::Xaml::Media::Imaging
directive and the auto keyword, so that the same code would look like this:nameInput
TextBox control and uses it to create a greeting. The greetingOutput
TextBlock displays the result.greetingOutput
TextBlock element.narrowState
and appears correctly on the small screen.wideState
has an AdaptiveTrigger with its MinWindowWidth property set to 641. This means that the state is to be applied only when the window width is not less than the minimum of 641 DIPs. You don't define any Setter objects for this state, so it uses the layout properties you defined in the XAML for the page content.narrowState
, has an AdaptiveTrigger with its MinWindowWidth property set to 0. This state is applied when the window width is greater than 0, but less than 641 DIPs. (At 641 DIPs, the wideState
is applied.) In this state, you do define some Setter objects to change the layout properties of controls in the UI:contentPanel
element from 120 to 20.inputPanel
element from Horizontal to Vertical.inputButton
element.cl
and verify that the output looks something like this:cl
, then your Visual C++ installation may have a problem. If you're using Visual Studio 2017 or later, try reinstalling the Desktop development with C++ workload in the Visual Studio installer. For details, see Install C++ support in Visual Studio. Or, reinstall the Build Tools from the Visual Studio downloads page. Don't go on to the next section until this works. For more information about installing and troubleshooting Visual Studio, see Install Visual Studio.cd c:
to change the current working directory to the root of your C: drive. Next, enter md c:simple
to create a directory, and then enter cd c:simple
to change to that directory. This directory will hold your source file and the compiled program.notepad simple.c
at the developer command prompt. In the Notepad alert dialog that pops up, choose Yes to create a new simple.c file in your working directory.dir
at the command prompt to list the contents of the c:simple directory. You should see the source file simple.c in the directory listing, which looks something like:cl simple.c
at the developer command prompt.simple
at the command prompt.cl file1.c file2.c file3.c
cl file1.c file2.c file3.c /link /out:program1.exe
cl /W4 file1.c file2.c file3.c /link /out:program1.exe
cl /?
at the developer command prompt. You can also compile and link separately and apply linker options in more complex build scenarios. For more information on compiler and linker options and usage, see C/C++ Building Reference.