Edit

Share via


XAML platform

This section includes topics that explain programming concepts that are generally applicable to any app that you write using the Windows Runtime and XAML for your UI definition. This section applies to UWP, WinUI 2 for UWP, and WinUI 3 for the Windows App SDK.

Topic Description
XAML overview Introduces the XAML language and concepts to the Windows Runtime app developer audience, and describes the different ways to declare objects and set attributes in XAML as it is used for creating a Windows Runtime app.
Dependency properties overview Explains the dependency property system that is available when you write a Windows Runtime app with XAML definitions for UI.
Custom dependency properties Explains how to define and implement custom dependency properties for a Windows Runtime app.
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 Describes the programming concept of events in a Windows Runtime app when using C#, Visual Basic, or C++/CX 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 add the handlers in code. Windows Runtime supports routed events: certain input events and data events can be handled by objects beyond the object that fired the event. Routed events are useful when you define control templates or use pages or layout containers.