C#, VB, and C++ programming concepts for Windows Store apps

4 out of 11 rated this helpful - Rate this topic

Purpose

This section includes topics that explain programming concepts that are generally applicable to any app that you write, if you are using C#, Microsoft Visual Basic or C++ as your programming language and XAML for your UI definition.

In this section

TopicDescription

Dependency properties overview

This topic explains the dependency property system that is available when you write a Windows Store app built for Windows using C++, C#, or Visual Basic along with XAML definitions for UI.

Custom dependency properties

Explains how to define and implement custom dependency properties for a Windows Store app using C++, C#, or Visual Basic.

Attached properties overview

Explains the concept of an attached property in XAML, and provides some examples.

Custom attached properties

Explains how to implement a XAML attached property as a dependency property and how to define the accessor convention that is necessary for your attached property to be usable in XAML.

Events and routed events overview

We describe the programming concept of events, when using C#, Microsoft Visual Basic or C++ as your programming language and XAML for your UI definition. You can assign handlers for events as part of the declarations for UI elements in XAML, or you can use language-specific syntax to add the handlers in code. Windows Runtime supports routed events, which is a feature where certain input events and data events can be handled by objects other than the object that raised the event. Routed events are useful when you define control templates or centralize the event logic of an app page or layout container.

XAML overview

We introduce the XAML language and XAML concepts to the Windows Store app developer audience, and describe the different ways to declare objects and set attributes in XAML as it is used for creating a Windows Store app.

ResourceDictionary and StaticResource references

Explains how to define a ResourceDictionary element and keyed resources, and how XAML resources relate to other resources that you define as part of your app or app package.

 

Developer audience

This topic is for use by any Windows Store app developer that uses C#, Visual Basic, or Visual C++ component extensions (C++/CX).

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.