# microsoft/wpf-samples

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/microsoft-wpf-samples).**

5,698 stars · 3,283 forks · C# · MIT

## Links

- GitHub: https://github.com/microsoft/WPF-Samples
- awesome-repositories: https://awesome-repositories.com/repository/microsoft-wpf-samples.md

## Description

This repository is a collection of reference implementations and code samples for building Windows desktop applications using the Windows Presentation Foundation framework. It provides a sample library focused on desktop window management, declarative user interface layouts, and the Model-View-ViewModel architectural pattern.

The collection includes practical examples of XAML-based declarative interfaces and the synchronization of data between business logic and the user interface via the Model-View-ViewModel pattern. It offers reference implementations for applying accessibility standards and implementing standard desktop styling and layering patterns.

The samples cover a broad range of desktop development capabilities, including user input and event handling for keyboard and mouse interactions. It also demonstrates the use of hardware-accelerated rendering, the dependency property system, and application lifecycle management for native Windows software.

## Tags

### Business & Productivity Software

- [Windows Desktop Applications](https://awesome-repositories.com/f/business-productivity-software/windows-desktop-applications.md) — Provides a comprehensive reference for building native Windows desktop applications using WPF.
- [Application Lifecycles](https://awesome-repositories.com/f/business-productivity-software/windows-desktop-applications/application-lifecycles.md) — Manages how Windows programs start and handle window states for stable execution.

### Education & Learning Resources

- [Framework Sample Libraries](https://awesome-repositories.com/f/education-learning-resources/framework-sample-libraries.md) — Serves as a reference sample library for building applications with the WPF framework.

### Software Engineering & Architecture

- [MVVM Patterns](https://awesome-repositories.com/f/software-engineering-architecture/mvvm-patterns.md) — Implements the Model-View-ViewModel pattern to decouple business logic from the user interface.
- [Application Lifecycle Management](https://awesome-repositories.com/f/software-engineering-architecture/application-lifecycle-management.md) — Provides examples for managing the startup, window state, and shutdown processes of native Windows applications. ([source](https://github.com/microsoft/wpf-samples#readme))

### User Interface & Experience

- [XAML](https://awesome-repositories.com/f/user-interface-experience/application-architectures/xaml.md) — Uses XAML to define declarative user interface layouts and component properties.
- [Data Binding](https://awesome-repositories.com/f/user-interface-experience/data-binding.md) — Provides mechanisms for synchronizing state between data sources and interface components.
- [Visual Tree Compositions](https://awesome-repositories.com/f/user-interface-experience/nested-ui-composition-patterns/widget-tree-compositions/visual-tree-compositions.md) — Implements a hierarchical visual tree for constructing complex desktop user interfaces.
- [Property Systems](https://awesome-repositories.com/f/user-interface-experience/property-systems.md) — Demonstrates the use of a property system with built-in support for change notification, styling, and inheritance.
- [Accessibility Standards](https://awesome-repositories.com/f/user-interface-experience/accessibility-standards.md) — Ensures desktop components adhere to accessibility standards for diverse user needs. ([source](https://github.com/microsoft/wpf-samples#readme))
- [Accessible UI Frameworks](https://awesome-repositories.com/f/user-interface-experience/accessible-ui-frameworks.md) — Applies accessibility standards to desktop components for inclusive user interaction.
- [Desktop Windowing Management](https://awesome-repositories.com/f/user-interface-experience/desktop-windowing-management.md) — Ships practical implementations of desktop window management and user input handling.
- [Interaction and Event Handling](https://awesome-repositories.com/f/user-interface-experience/form-and-input-management/interaction-and-event-handling.md) — Implements interaction and event handling logic for responding to keyboard and mouse input. ([source](https://github.com/microsoft/wpf-samples#readme))

### Graphics & Multimedia

- [Hardware-Accelerated Rendering](https://awesome-repositories.com/f/graphics-multimedia/graphics-engines-rendering/rendering/engines/graphics-pipeline-architectures/hardware-accelerated-rendering.md) — Uses a hardware-accelerated graphics pipeline to render high-performance vector shapes and animations.
- [User Interaction](https://awesome-repositories.com/f/graphics-multimedia/immersive-interactive-systems/user-interaction.md) — Implements event listeners to handle user clicks, keyboard presses, and drag-and-drop interactions.

### Mobile Development

- [Desktop UI Patterns](https://awesome-repositories.com/f/mobile-development/cross-platform-frameworks/flutter/desktop-ui-patterns.md) — Implements standard desktop styling and layering patterns for consistent user experiences. ([source](https://github.com/microsoft/wpf-samples#readme))
