Skip to Content
Professional Visual Basic 2012 and .NET 4.5 Programming
book

Professional Visual Basic 2012 and .NET 4.5 Programming

by Bill Sheldon, Billy Hollis, Rob Windsor, David McCarter, Gastón Hillar, Todd Herman
January 2013
Intermediate to advanced
912 pages
26h 58m
English
Wrox
Content preview from Professional Visual Basic 2012 and .NET 4.5 Programming

New Visual Elements in Windows 8

Windows 8 includes quite a number of new elements. In this section, you'll look at the new elements you are most likely to need early in your Windows 8 app development.

AppBar

Earlier, you learned how Windows 8 allows an app bar to slide into your application from the bottom, and a nav bar to slide in from the top. By convention, these bars hold user actions and navigation options, as discussed in the UI conventions earlier.

Both of these visual elements are constructed from the same XAML element: the AppBar. This same element can be used in two different places.

You also learned how the root visual element for parts of your app will usually be the Page control or one of its subclasses. Page has two properties for specifying app bars: Page.BottomAppBar for the app bar, and Page.TopAppBar for the nav bar.

Both of these properties take an AppBar element. AppBar is just a container. You can think of it as a content control. The AppBar class just provides a surface to show when the user makes the proper gestures. All of the appearance and functionality inside the AppBar is up to you.

Constructing a Bottom App Bar

An app bar can have any elements on it. For simple app bars, the recommended arrangement of elements features two sets of buttons, one on the left side of the app bar, and one on the right. The left side is for operations or actions specific to an item currently shown in the view. The right side is for operations that apply to the application ...

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

Visual Basic 2012 Programmer's Reference

Visual Basic 2012 Programmer's Reference

Rod Stephens

Publisher Resources

ISBN: 9781118332139Purchase book