Skip to Main Content
Visual Basic 2015 Unleashed
book

Visual Basic 2015 Unleashed

by Alessandro Del Sole
July 2015
Intermediate to advanced content levelIntermediate to advanced
1300 pages
87h 27m
English
Sams
Content preview from Visual Basic 2015 Unleashed

Declaring and Using Controls with the Designer and XAML

To add controls to the user interface, you have two possibilities: dragging controls from the Toolbox onto the designer surface or manually writing XAML. For a better understanding, you first learn how to drag from the Toolbox. With the Toolbox open, click the Button control and drag it onto the designer. When you release it, the IDE should look like Figure 28.5.

Image

FIGURE 28.5 Dragging controls and generating XAML.

As you can see from Figure 28.5, Visual Studio also generates the XAML code for the controls you add to the UI. For the new button, this is the XAML code generated:

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Visual Basic 2015

Beginning Visual Basic 2015

Bryan Newsome

Publisher Resources

ISBN: 9780134196664Purchase book