Using xaml in VC++

srfpala 111 Reputation points
2021-04-18T23:52:28.197+00:00

Running Win10 and VS2019CE
I have a Blank App ( U W - C++/CX )
I run and see a Windows form as expected.
I see MainPage.xaml and wish to design it using XAML
I see no Designer View in xaml -- only Design in Blend
Where is the xaml design screen and associated toolbox?
I want to place a button and label on my form.
What should I do ?
TIA
Bob

Universal Windows Platform (UWP)
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AryaDing-MSFT 2,826 Reputation points
    2021-04-19T02:18:44.547+00:00

    Hi,

    Welcome to Microsoft Q&A!

    You could double-click the MainPage.xaml, you will see the XAML designer in window. As for Toolbox, you could select View option and open Toolbox, which displays many of the controls that you can use in your app, when you double-click the TextBox control, this XAML is added to the XAML view, you can also drag the control from the Toolbox to the XAML designer. Please refer to this official document to know more, such as creating an event handler and setting the control properties.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments