Free Trial
|

Windows 8 Controls with XAML and C#

User interfaces are usually composed of reusable controls that encapsulate the logic for rendering the view, taking input and manipulating data. Windows 8 XAML has a wide range of such controls and this is a terse overview of these controls that you can use to check if you know them all.


The Base Classes

The following classes form the core of the controls library in Windows 8 XAML:

Controls Inherited from WPF and Silverlight

Windows 8 XAML has many of the standard controls available in WPF or Silverlight. These include

Note that all ItemsControls except ItemsControl itself present their content in associated item controls that can be styled using the ItemContainerStyle property. These include ComboBoxItem, FlipViewItem, GridViewItem, ListBoxItem, and ListViewItem.

Some Noteworthy Changes in Old Controls

Conclusion

Overall the set of controls in Windows 8 XAML closely matches those of Silverlight or WPF, making a lot of the skills gained in programming for one of these platforms easily transferable to another. It also makes a lot of old WPF and Silverlight articles apply to Windows 8. The new features and controls allow you to more easily create exciting new experiences.

You can also find an overview of controls available in Windows 8 on MSDN here.

Safari Books Online has the content you need

Check out these Windows 8 books available from Safari Books Online:

Building Windows 8 Applications with C# and XAML shows you how to build immersive, responsive touch apps for Windows 8 tablets, computers, and other devices! Top Microsoft MVP and Wintellect consultant Jeremy Likness shows how to leverage your existing C#, XAML, WPF, or Silverlight skills with new Visual Studio 12 tools and best practices to build incredibly powerful Windows 8/WinRT apps!

The key features for developing on Microsoft’s eagerly anticipated Windows 8 operating system are unveiled in this fast-paced 80-page primer. Windows 8 contains the revolutionary Metro application framework for building dynamic and responsive touch-enabled applications that target both desktops and mobile devices. With the official release of Windows 8 looming ever closer, experienced author Adam Freeman invites you to take a crash course in Metro development in Metro Revealed: Building Windows 8 Apps with HTML5 and JavaScript. Using HTML5 and JavaScript, he ensures you understand the changes that are being made to Windows development practices and puts you on the right course to creating innovative and elegant applications for this latest evolution of the world’s most successful operating system.
Get a head start on building apps for Windows 8. With a series of examples, Getting Started with Windows 8 Apps takes you through the process of creating complete touch-enabled apps that respond to native sensors. Through the course of the book, you’ll learn how to work with the Windows Runtime application model while building a Bing Image Search app.

About this author

Filip Skakun is a Sr. Interactive Developer at Vectorform, where he creates user experiences for the world’s top brands, using the new and upcoming technologies. He is also the creator of the WinRT XAML Toolkit, a popular library for Windows 8 XAML developers and has a blog where he writes about programming. You can catch him on twitter.

About Safari Books Online

Safari Books Online is an online learning library that provides access to thousands of technical, engineering, business, and digital media books and training videos. Get the latest information on topics like Windows 8, Android Development, iOS Development, Cloud Computing, HTML5, and so much more – sometimes even before the book is published or on bookshelves. Learn something new today with a free subscription to Safari Books Online.
|

Comments are closed.

Facebook Twitter RSS feed