Compartir a través de


All-In-One WPF Code Samples

All-In-One WPF Code Samples

Introduction

Windows Presentation Foundation (WPF) provides developers with a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents. The All-In-One WPF code samples demonstrate the typical programming topics about WPF. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing WPF projects.

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CSWPFAnimatedImage The WPF code sample demonstrates how to display a series of photos just like a digital picture frame with a "Wipe" effect. Download ReadMe.txt
CSWPFAutoCompleteTextBox The code sample demonstrates an easy implementation of AutoCompleteTextBox in WPF. Download ReadMe.txt
CSWPFCascadeDataGridComboBoxColumns The code sample demonstrates how to show cascaded data in two combobox controls in DataGrid Download ReadMe.txt
CSWPFClipboardViewer This code sample demonstrates how to monitor Windows clipboard changes in a WPF application. Download ReadMe.txt
CSWPFDataBinding This project demonstrates the basics of Data Binding in WPF. The sample provides both procedural code and XAML code for implementing data binding Download ReadMe.txt
CSWPFMasterDetailBinding This sample demonstrates how to implement master/detail data binding in WPF. Download ReadMe.txt
CSWPFMVVMPractice The code sample demonstrates how to implement the MVVM pattern in a WPF application. Download ReadMe.txt
CSWPFNavigationUsage The sample demonstrates navigation usages in a WPF application. Download ReadMe.txt
CSWPFPaging The sample demonstrates how to page data in WPF. Download ReadMe.txt
CSWPFThreading The code sample project illustrates two WPF threading models. Download ReadMe.txt
CSWPFTwoLevelGrouping The sample demonstrates how to display two-level grouped data in WPF. Download ReadMe.txt
VBWPFAnimatedImage The WPF code sample demonstrates how to display a series of photos just like a digital picture frame with a "Wipe" effect. Download ReadMe.txt
VBWPFAutoCompleteTextBox The code sample demonstrates an easy implementation of AutoCompleteTextBox in WPF. Download ReadMe.txt
VBWPFCascadeDataGridComboBoxColumns The code sample demonstrates how to show cascaded data in two combobox controls in DataGrid Download ReadMe.txt
VBWPFClipboardViewer This code sample demonstrates how to monitor Windows clipboard changes in a WPF application. Download ReadMe.txt
VBWPFDataBinding This project demonstrates the basics of Data Binding in WPF. The sample provides both procedural code and XAML code for implementing data binding Download ReadMe.txt
VBWPFMasterDetailBinding This sample demonstrates how to implement master/detail data binding in WPF. Download ReadMe.txt
VBWPFPaging The sample demonstrates how to page data in WPF. Download ReadMe.txt
VBWPFThreading The code sample project illustrates two WPF threading models. Download ReadMe.txt
VBWPFTwoLevelGrouping The sample demonstrates how to display two-level grouped data in WPF. Download ReadMe.txt

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CSWPF3DMultiTouch The code sample demonstrates using WPF 4's support of multi-touch events to manipulate a 3D scene. Download ReadMe.txt
CSWPFCascadeDataGridComboBoxColumns The code sample demonstrates how to show cascaded data in two combobox controls in DataGrid Download ReadMe.txt
VBWPF3DMultiTouch The code sample demonstrates using WPF 4's support of multi-touch events to manipulate a 3D scene. Download ReadMe.txt
VBWPFCascadeDataGridComboBoxColumns The code sample demonstrates how to show cascaded data in two combobox controls in DataGrid Download ReadMe.txt
VBWPFMVVMPractice The code sample demonstrates how to implement the MVVM pattern in a WPF application. Download ReadMe.txt

Download all code samples: https://1code.codeplex.com/releases

Submit your request of WPF code samples (Guidance)

Comments

  • Anonymous
    December 25, 2010
    Very interesting package, It is very helpful when you need to find some code ! InSeCla Forum Software An open source ajax asp.net forum software, featuring JS instant pagination, InstantOn and being the world first unique to bring multi-lingual forums publications

  • Anonymous
    June 21, 2012
    iam can not speak englesh. you are help me for wpf progect? help understand help me omed1414@gmail.com

  • Anonymous
    August 04, 2012
    Hi, I need a WPF VB.NET Code for Loading a new WPF Form. Form handling samples required.

  • Anonymous
    January 04, 2013
    I want to learn WPF and want to develop application which should be with best GUI. Please let me have sample application so I can get help from it.

  • Anonymous
    January 07, 2013
    hi i am new to wpf how to manage user session in wpf plz need some help

  • Anonymous
    March 05, 2013
    Could you please post the Code samples using VB language.

  • Anonymous
    March 10, 2013
    i need the samples very urgent. Please forward to raghunath1230@gmail.com

  • Anonymous
    March 13, 2013
    Hi, I would like to request about EntityFrame 4 or 5 using T4 Generated POCO C-Sharp Class and use to UnitOfWork, Repostory, DataLayer and Business Layer, In a simple manner way of example. . . Thanks. . .

  • Anonymous
    March 13, 2013
    Hi, I would like to request about EntityFrame 4 or 5 using T4 Generated POCO C-Sharp Class and use to UnitOfWork, Repostory, DataLayer and Business Layer, In a simple manner way of example. . . Thanks. . .

  • Anonymous
    March 26, 2013
    I need the code sample that demonstrates how to implement the MVVM pattern in a WPF application. Kindly send me to my email  : tomslyjc@gmail.com

  • Anonymous
    June 09, 2013
    Hi request you to send me the code sample.

  • Anonymous
    June 18, 2013
    what's the point if they can't compile.  

  • Anonymous
    August 02, 2013
    Dear sir, I want to develop sample application with Ms Access. Please send me any sample with MS Access thanks Vilas jadha jadhav_vilas84@yahoo.com

  • Anonymous
    August 07, 2013
    Please send me all code samples for WPF using C# 2008 at sonawane.nilesh27@yahoo.co.in

  • Anonymous
    January 16, 2014
    please send me all samples code to me @ santosh.pothankar@gmail.com

  • Anonymous
    February 15, 2014
    how to connect to the database with wpf using dataset?

  • Anonymous
    May 01, 2014
    Hi, How to do animation for a pinpoint jumping? It's for a map which a pinpoint will continuously jump up and down at the same place which notice public of the location of what they search for?

  • Anonymous
    May 06, 2014
    Please send me all code samples for WPF using C#.net 2010 at purna.shruthika@yahoo.in

  • Anonymous
    May 14, 2014
    Hi, I just to ask if you have sample project will multiple connection string using wpf as the UI? I want to request a copy of your sample project if possible. You can send it to knightfury28@live.com if the request is possible. Thank you very much....

  • Anonymous
    June 05, 2014
    need code for drag and drop from a datagrid to another in vb.net

  • Anonymous
    June 12, 2014
    how we show sum of any column of datagrid in the textbox

  • Anonymous
    June 24, 2014
    Can u please help me to display the selected date from calender tool to the label using WPF

  • Anonymous
    July 15, 2014
    sir i want you help me i make a mobile shop window application for a mobile delar plz you send me a sample code this application     on thi email address spunit788@gmail.com

  • Anonymous
    July 16, 2014
    A form which takes in an account name as a string and an access key as a string, an image file from his desktop and then has an upload button which calls a function that connects to that account and uplaods the image file.

  • Anonymous
    July 16, 2014
    A form which takes in an account name as a string and an access key as a string, an image file from his desktop and then has an upload button which calls a function that connects to that account and uplaods the image file.

  • Anonymous
    October 10, 2014
    I want to upload document using wpf..please give some example

  • Anonymous
    December 26, 2014
    i need a wpf test project for WPF testing&starting

  • Anonymous
    January 28, 2015
    Hi. I need help with graphics objects over a bmp , editable objects, insert, delete, and saving. Thanks oerich@hotmail.com

  • Anonymous
    March 24, 2015
    pls send complete MVVM in WPF Source Code

  • Anonymous
    June 09, 2015
    please share samples to me on rahulkumarscriet@gmail.com

  • Anonymous
    July 15, 2015
    This path from app.config file public MainWindow() { InitializeComponent(); FillDataGrid(); } private void FillDataGrid() { string ConString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString; string CmdString = string.Empty; using (SqlConnection con = new SqlConnection(ConString)) { CmdString = "SELECT emp_id, fname, lname, hire_date FROM Employee"; SqlCommand cmd = new SqlCommand(CmdString, con); SqlDataAdapter sda = new SqlDataAdapter(cmd); DataTable dt = new DataTable("Employee"); sda.Fill(dt); datagrid1.ItemsSource = dt.DefaultView; }

  • Anonymous
    July 15, 2015
    ======================  WPF ==================== using System.configuration references... System.Configuration Please I need wpf code for app.config in visual studio 2013 insert - delete - Update - select from database SQL 2008 but... the event handler in code behind should be only like this code... public MainWindow() { InitializeComponent(); FillDataGrid(); } private void FillDataGrid() { string ConString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString; string CmdString = string.Empty; using (SqlConnection con = new SqlConnection(ConString)) { CmdString = "SELECT Student_ID, StudentName, StudentClass, hire_date FROM StudentTable"; SqlCommand cmd = new SqlCommand(CmdString, con); SqlDataAdapter sda = new SqlDataAdapter(cmd); DataTable dt = new DataTable("Employee"); sda.Fill(dt); datagrid1.ItemsSource = dt.DefaultView; } Student_ID .. should be an Identity with Primary Key. the problem is ... Exception has been thrown by the target of an invocation I need 'codesample.rar' with database connected to same path in app config file to solve the error

  • Anonymous
    August 28, 2015
    please send latest  wpf samples  covering all areas in wpf.

  • Anonymous
    October 12, 2015
    I need code for document scanning using wia with Smart Client Application Architecture Visual Studio 2012 using C#.

  • Anonymous
    December 18, 2015
    how to work in layer in wpf c# ? i want a project of wpf c# . small project can i get it ??

  • Anonymous
    December 18, 2015
    i want a small project in wpf c# . please someone send to me at waleed.ahmed.cs@gmail.com