Skip to content

cd10anil/WPF-Samples

Repository files navigation

WPF-Samples

This repo contains the samples that demonstrate the API usage patterns and popular features for the Windows Presenation 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.

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 [email protected]

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.

##Samples by category

Accessibility
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Application Management
Application Activation and Deactivation Application Cookies Application Shutdown Managing Unhandled Exceptions on Secondary UI Threads Managing Unhandled Exceptions on Secondary Worker Threads
Processing Command Line Arguments Reusable Custom Application Class Single Instance Detection Skinned Application Unhandled Application Exception
Clipboard
Clipboard Spy Clipboard Viewer
DataBinding
Simple Binding Creating a Binding in Code Controlling the Direction and Timing of the Data Flow Binding with a Custom Value Converter Sorting and Filtering Items in a View
Sorting and Grouping Data in XAML Adding and Removing Groups Binding Validation Business Layer Validation Binding to XML Data
XMLDataProvider with Embedded Data File Binding Using XML Namespaces Introduction to Data Templating Binding Using Data Triggers Displaying Hierarchical Data
Binding the Properties of UI Elements Binding to a Collection Binding Using Composite Collections Master-Detail Scenario Using ObjectDataProvider Master-Detail Scenario Using XmlDataProvider
inding to the Results of a Method Implementing Property Change Notification Implementing Parameterized MultiBinding Binding Using PriorityBinding Showing System Colors Using Data Services
Explicitly Updating the Binding Source Binding to an ADO.NET DataSet Binding to a Web Service LINQ Query Formatting a String on a Binding
Changing a Collection by Using IEditableCollectionView Validate the Data of an Object Validate an Item in an ItemsControl
Drag & Drop
Drag and Drop an Object on a Canvas Create a Data Object from a Text Selection Drag-and-Drop Events Explorer Data Formats Spy Load a Dropped File
Thumb Drag Functionality
Fundamentals
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Getting Started
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Globalization and Localization
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Graphics, Media and Animation
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Migratin and Interoperability
Simple Provider Fragment Provider Simple Provider Fragment Provider Fragment Provider
Simple Provider Fragment Provider Simple Provider
Simple Provider Fragment Provider
Sample Applications
Calculator Concentric Rings Cube Animation Data Binding Drop Shadow Ink
Editing Examiner ExpenseIt ExpenseIt - Standalone Font Dialog Box Geometry Designer
Graphing Calculator HexSphere Layout to Layout Transitions Logon Screen Notepad
Particle Effects Photo Store SDK Viewer Logon Screen Slide Puzzle
Sticky Notes Traffic Alert Video Text WPF Photo Viewer XAML to HTML Conversion
Video Viewer
Window Management
Customized Window UI Dialog Box Sample Hide a Window Without Closing MessageBox Non-Rectangular Windows
Notification Icon Save Window Placement State Show a Window Without Activating Window Activation and Deactivation Window Sizing Order of Precedence
Wizard

About

Repository for WPF related samples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rich Text Format 51.8%
  • C# 46.0%
  • C++ 2.1%
  • JavaScript 0.1%
  • C 0.0%
  • Visual Basic .NET 0.0%