Chapter 16

Advanced Desktop Programming

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to use routed commands instead of events
  • How to create menus using the Menu control and routed commands
  • How to use styling controls and applications using XAML styles
  • How to create value converters
  • How to use timelines to create animations
  • How to define and reference static and dynamic resources
  • How to create user controls when the common controls are not enough

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter at www.wrox.com/remtitle.cgi?isbn=9781118314418 on the Download Code tab. The code is in the Chapter 16 download and individually named according to the names throughout the chapter.

Until this point you have used Windows Presentation Foundation in much the same way that you use the other major technology for creating windows applications in Visual Studio: Windows Forms. But that is about to change. WPF can style any control and use templates to change existing controls to look nothing like they do out-of-the-box. In addition to that, you are going to start working more and more by typing XAML. Although this might seem like a burden at first, the ability to move and fine-tune the display by setting properties will quickly become second nature, and you will find that there is quite a bit in XAML that cannot be done in the designer, such as creating animations.

Now it is time to continue where you left off in Chapter 15 and continue with the game ...

Get Beginning Visual C# 2012 Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.