In-Depth

Avalon: The Longhorn Presentation Layer

Avalon is a core part of Microsoft's presentation layer for its next major version of Windows, code-named Longhorn. Drill down on what it contains in this architecture model.

Avalon is the code name for a core portion of Longhorn's presentation layer (see Figure 1). The phrase is used frequently to refer to the entire presentation layer, but strictly speaking, Avalon doesn't include Windows Forms or ASP.NET. Avalon provides an expanded view of the user interface layer with specific models for (1) documents and (2) media. Many other features, including controls and even the (3) Personalization and Profiling Services of ASP.NET, are defined as part of the Longhorn operating system as well.

Avalon interacts with the base operating system. For example, the "Longhorn: The Base Operating System" diagram includes a box for GDI/GDI+ that shows the graphics and input portions of the base operating system. Some of these items reside in the kernel; others do not. These core items aren't repeated in this view of Avalon, but Avalon depends on them to accomplish and display tasks.

Avalon offers a fundamental change in how you interact with your computer, and is probably the most significant UI change since Windows 1.0. It promises fundamental changes in technology, such as the way graphics are buffered internally. These features will include more efficient integration with sound and video, complex graphics displays, and sophisticated use of transparency. Microsoft believes the real advances here will come when experts in human computer interactions are free from the limitations of Win32 and can develop new controls and techniques that offer more of an immersive experience. An immersive experience decreases the effort you spend interacting with the computer and increases your ability to focus on the task at hand. A good computer game is an immersive experience—allowing you to concentrate on your goal, not the way you control your character.

It isn't in the diagram, but another aspect of Avalon is the declarative graphics language, Extensible Application Markup Language (XAML). XAML is an XML-based language for describing graphics. You'll be able to declare the new Avalon controls using XAML or in the source code of your language of choice. You'll also be able to use WinForm controls and XAML controls side by side as you migrate your applications.

Details are few at this time, but the models Microsoft presented at PDC also include slots for a (4) desktop composition engine and a (5) presentation object manager.

About the Author

Kathleen is a consultant, author, trainer and speaker. She’s been a Microsoft MVP for 10 years and is an active member of the INETA Speaker’s Bureau where she receives high marks for her talks. She wrote "Code Generation in Microsoft .NET" (Apress) and often speaks at industry conferences and local user groups around the U.S. Kathleen is the founder and principal of GenDotNet and continues to research code generation and metadata as well as leveraging new technologies springing forth in .NET 3.5. Her passion is helping programmers be smarter in how they develop and consume the range of new technologies, but at the end of the day, she’s a coder writing applications just like you. Reach her at [email protected].

comments powered by Disqus

Featured

  • VS Code v1.99 Is All About Copilot Chat AI, Including Agent Mode

    Agent Mode provides an autonomous editing experience where Copilot plans and executes tasks to fulfill requests. It determines relevant files, applies code changes, suggests terminal commands, and iterates to resolve issues, all while keeping users in control to review and confirm actions.

  • Windows Community Toolkit v8.2 Adds Native AOT Support

    Microsoft shipped Windows Community Toolkit v8.2, an incremental update to the open-source collection of helper functions and other resources designed to simplify the development of Windows applications. The main new feature is support for native ahead-of-time (AOT) compilation.

  • New 'Visual Studio Hub' 1-Stop-Shop for GitHub Copilot Resources, More

    Unsurprisingly, GitHub Copilot resources are front-and-center in Microsoft's new Visual Studio Hub, a one-stop-shop for all things concerning your favorite IDE.

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

Subscribe on YouTube