Repository for WPF related samples
C# C++ Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit fbee902 Aug 16, 2016
Harikrishna Menon
Harikrishna Menon committed Aug 16, 2016 Merge pull request #35 from hugodahl/master
Fix typos within the README document
Permalink
Failed to load latest commit information.
Accessibility Added documentation for all accessibility samples and removed samples… Aug 16, 2015
Animation Added documentation for Animation samples Aug 16, 2015
Application Management Added documentation to Application Management Samples and moved Custo… Aug 16, 2015
Clipboard Added documentation for samples Aug 16, 2015
Data Binding Added documentation for Binding samples Aug 16, 2015
Documents Refactor: use nameof where Intellisense suggests. Aug 13, 2015
Drag and Drop Added documentation for drag and drop samples and removed some sample… Aug 16, 2015
Element Tree Added documentation for samples Aug 16, 2015
Elements Added documentation for samples and restructured folders for ExpenseI… Aug 16, 2015
Events Added documentation for samples Aug 16, 2015
Getting Started Fix MainContentStyle references Sep 21, 2015
Globalization and Localization Revert "Flat project structure and addition of doc files" Aug 13, 2015
Graphics Refactor: use nameof where Intellisense suggests. Aug 13, 2015
Input and Commands Initial commit of the touch keyboard notification sample code. This i… Aug 8, 2016
Migration and Interoperability Fix #13. Thanks to @jogibear9988 for the suggestion on the fix. Nov 30, 2015
PerMonitorDPI Added new manifest setting to support downlevel versions Aug 6, 2016
Properties Added documentation for samples Aug 16, 2015
Resources Added documentation for samples Aug 16, 2015
Sample Applications Fix Picture resource names Sep 21, 2015
Speech and Media Added documentation for samples and restructured folders for ExpenseI… Aug 16, 2015
Styles & Templates Added documentation for samples Aug 16, 2015
Threading Added documentation for samples Aug 16, 2015
Visual Layer Added documentation for samples and restructured folders for ExpenseI… Aug 16, 2015
Windows Added documentation for samples and restructured folders for ExpenseI… Aug 16, 2015
.gitattributes Initial merge Aug 12, 2015
.gitignore gitignore change again Nov 24, 2015
LICENSE Initial commit Apr 15, 2015
README.md Fix typos in README.md Aug 15, 2016
WPFSamples.sln Sample for scaling WinForms content Jan 15, 2016

README.md

WPF-Samples

This repo contains the samples that demonstrate the API usage patterns and popular features for the Windows Presentation Foundation in the .NET Framework for Desktop. These samples were initially hosted on MSDN, and we are gradually moving all the interesting WPF samples over to GitHub.All the samples have been retargeted to .NET 4.5.2.

For additional WPF samples, see WPF Samples.

Please note that the documentation on the repo is still being updated, so all links might not point to the right location.

License

Unless otherwise mentioned, the samples are released under the MIT license

Help us improve our samples

Help us improve out samples by sending us a pull-request or opening a GitHub Issue

Questions: mail wpfteam@microsoft.com

WPF development

These samples require Visual Studio 2015 to build, test, and deploy.

Get a free copy of Visual Studio 2015 Community Edition with support for building WPF apps

Using the samples

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2015.

Download the samples ZIP

Notes:

  • Before you unzip the archive, right-click it, select Properties, and then select Unblock.
  • Most samples should work independently
  • By default, all the sample target .NET 4.5.2, you can change this to .NET 4.6 in the Project->Properties page in Visual Studio.

For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance available in MSDN. These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for WPF.