Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / desktop / WPF

WPF

WPF

Great Reads

by wim4you
This article describes a Tabbed File Explorer with minimal functionality using only basic MVVM techniques and some attached properties. In a first article I described a MVVM Tabbed Navigation Tree, in this article I add a Tabbed Folderplane.
by Its Piyush Gupta
In the Vista world, application type selection is based on security requirement and deployment method but not on user interface requirements. This article describes various application types supported by Avalon sub-system of the Vista operating system.
by Daniel Brousser
Custom TextBox control for UI input validation
by Paul_Wade
A WPF application for viewing RSS video feeds. Built using the MVVM pattern.

Latest Articles

by wim4you
This article describes a Tabbed File Explorer with minimal functionality using only basic MVVM techniques and some attached properties. In a first article I described a MVVM Tabbed Navigation Tree, in this article I add a Tabbed Folderplane.
by Its Piyush Gupta
In the Vista world, application type selection is based on security requirement and deployment method but not on user interface requirements. This article describes various application types supported by Avalon sub-system of the Vista operating system.
by Daniel Brousser
Custom TextBox control for UI input validation
by Paul_Wade
A WPF application for viewing RSS video feeds. Built using the MVVM pattern.

All Articles

Sort by Score

WPF 

by Matteo Prosperi
In this article, we investigate how DateTime issues are avoided.
by jmix90
A fast and easy tip about shadows and performance
by Nadege Rouelle
WPF highlight ListView items
by Arik Poznanski
A Customizable WPF MessageBox
by Colin Eberhardt
This blog post provides step-by-step instructions for creating a user control, which exposes bindable properties, in WPF and Silverlight. The post covers dependency properties, and how to manage DataContext inheritance.
by Steve Naidamast
Here is a simple way to make a custom WPF Message Box
by Colin Eberhardt
A simple IValueConverter implementation that makes use of the framework type converters in order to convert between a large range of source / target types
by Raymund Macaalay
13 easy steps on how to redesign your Sharepoint 2010 site
by Timmy Kokke
Often extensions for Expression Blend have to need to store some global variables. Why not use the mechanisms Blend itself offers?
by Derek Lakin
Implementing Application.DoEvents in WPF.
by Nick Polyak
AProperties and Bindings outside of WPF Revisited
by qenn
Asynchronous WPF command
by Nick Polyak
A series of blog posts regarding implementing WPF concepts outside of WPF
by Nick Polyak
Re-implementing and improving WPF concepts outside of WPF and in a way that is not necessarily connected to GUI development.
by Colin Eberhardt
How to automatically show ToolTips on a trimmed TextBlock (Silverlight + WPF)
by Matteo Prosperi
This post is the the second in a short series investigating somewhat exotic parts of .NET.
by Felice Pollano
Using AvalonDock and Caliburn Micro Screen Conductor together
by Sacha Barber
Azure: how to upload and stream video content to WPF from blob storage
by Ivan Krivyakov
BackgroundWorker and UI threads
by Nick Polyak
I continue a series of blog posts about implementing WPF concepts outside of WPF.
by Leom Burke
Binding and styling text to a RichTextBox in WPF
by Ivan Krivyakov
This simple trick stops the binding gremlins on their tracks, as only a dependency property can be their target.
by jmix90
A lot of controls expose properties which are not DependencyProperties and then you can’t put a binding on it. On some other cases, you only have a getter as accessor and you can’t put a binding on it too...
by Pete O'Hanlon
A sample of the WPF databinding infrastructure.
by Sacha Barber
A short post about how you can easily bind to nullable enums value in WPF
by jmix90
A problem you often meet when using MVVM is to get the selected items of an items control, especially Listbox
by Nick Polyak
Here we are going to talk about the binding concept and how it can be re-implemented outside of WPF without being tied to the visual libraries or the UI threads.
by Abhijit Jana
A demo of how to integrate a Silverlight Application with SharePoint 2010
by Nikola Breznjak
How to build a font viewer application in WPF without writing any C# code
by erik_nl
Building a control template/style for the tabControl to clone the office 2010 ribbon File look
by Ashish Kaila
How to build a docking window management solution in WPF
by Nikos Baxevanis
How to build a Metro UI with WPF?
by rudigrobler
Building OpenPOS – Settings and Notifications
by Junian Triajianto
How to perform Face Detection using your camera / Webcam
by User 271009
Change and Deleted Item Tracking within the Infragistics DataGrid
by User 271009
Change and deleted item tracking within the Infragistics datagrid
by Derek Lakin
Changing the Caret Colour in WPF
by Adrian Alexander
The included ClosableTabItem derives from TabItem and provides the functionality you need to easily add close buttons to your program's tabs.
by Daniel Vaughan
Prompted by a recent comment on the T4 Metadata Generation template article, which I released some weeks ago, I have implemented a new mechanism for concatenating property paths. This allows compile time validation of properties that exist on composite or nested members.
by Gilly Barr
How to compile multiple projects into a single EXE file in WPF
by Syed Adnan Ahmed
I have tried to summarise the list of development tools that you require in your day to day development.
by Melick
How to create client context to access SharePoint 2013 (Office 365 preview) in AutoHosted SharePoint app model using SharePoint Client Object Model
by Ashish Kaila
How to create custom Windows in WPF with ease
by Derek Lakin
Creating a Custom View Mode that Supports a Template Selector
by Derek Lakin
I'll show you how to implement a custom Style by implementing a custom message box.
by Wastedtalent
Part 1 of how to create a dynamic WPF menu
by Wastedtalent
Creating a dynamic WPF Menu: Part 3
by Aron Weiler
How to create a WPF frame inside of a window with AllowsTransparency set to true
by adityaswami89
A generic way of adding a table to Powerpoint using OpenXML
by Panagiotis Bailis
Custom media player in WPF - Part 1
by Panagiotis Bailis
Custom media player in WPF (Part 1)
by Nick Polyak
Data Templates implementation outside of WPF
by kishore Gaddam
The Binding object needs to get its data from somewhere, and there are a few ways to specify the source of the data like using Source property directly in the Binding, inheriting a DataContext from the nearest element...
by Abhishek Sur
Deal with Performance in WPF applications
by Md. Rashim Uddin
How to define your own dialog box
by Colin Eberhardt
A simple lesson regarding the speed of dependency properties ... and a funky Oscilloscope!
by jmix90
When you want to make an object binding-aware you have two choices : implements INotifyPropertyChanged or creates DependencyProperties.
by DotNetForAll
How to develop resolution independent applications in WPF
by Leom Burke
EF Code First and WPF with the Chinook Database. Part 1 – The Model
by Leom Burke
EF Code First and WPF with the Chinook database. Part 1b – the provider
by Leom Burke
I have decided to split out the styling work into 2 posts as it would be a huge post to restyle even something so simple.
by Daniel Vaughan
How to enforce single instance WPF applications
by Colin Eberhardt
Databinding is a fundamental part of the WPF, Silverlight, and the Silverlight for Windows Phone 7 frameworks. It is a powerful concept that once mastered allows you to write concise and elegant code.
by jmix90
Execute a command on a specified control when clicking on a button
by User 271009
WPF and Silverlight Design-Time code sharing
by Sacha Barber
Friction scrolling is now a WPF attached behaviour too
by Pete O'Hanlon
How to have fun with fonts in WPF
by n.podbielski
Reflection.Emit is very powerful tool. It creates IL code and since C# is converted into IL too, we have the same functionality as in C# and even more. It is very powerful and at the same time very complicated. Because of that it is worth to discuss how and for what it should be used.
by Pete O'Hanlon
A simple mechanism to limit the input of data to a TextBox so that it only accepted the relevant numeric amount.
by Wes Aday
IntroductionPrism is a set of libraries that allow developers to compose applications from separate components into a composite application.
by EngineerSpock
Global exceptions handling in WPF
by Victor Rene
Gradia's initiative bar
by Raymund Macaalay
Guide in developing Initiation Form on Sharepoint Workflows
by ManojKumar19
Hands on Lab for MVVM, Value Converter, XAML Binding, Delegate Command pattern, INotifyPropertyChange, Lambda Expression, LINQ etc. in Silverlight/WPF project
by Kunal Chowdhury «IN»
Add "Select All" behaviour for all TextBoxes in your WPF application
by Kunal Chowdhury «IN»
Organizing custom control properties inside Visual Studio and Expression Blend
by jmix90
The expander control can be used in a lot of situations but the one proposed by default is quite "rigid".
by Ayobami Adewole
How to create shaped or irregular window in WPF
by jmix90
Reusability and factorizing are maybe the most commons things you want and use when you are developing applications. In WPF it often means creating controls library (i don’t mean UserControl) that will be easy to use in multiple applications.
by Kunal Chowdhury «IN»
This is a continuation to my previous post "How to create a Custom Control in Silverlight".
by Raymund Macaalay
How to enable code blocks in Sharepoint 2010 (Works also in 2007)
by Abhishek Sur
The article shows how you could use RenderTargetBitmap to render a visual into BitmapSource and convert the same into actual image.
by Nadege Rouelle
How to use WPF Commands
by Raymund Macaalay
How to use LINQ to Sharepoint
by XPG Live
Use leaderboards on Windows Phone with XPG
by adityaswami89
Article on Validation in XAML applications with Fluent technique
by comiscience
Sometimes we need to have an independent View-ViewModel part which divides a part of the work to an independent module. Why do we do this?
by Ivan Krivyakov
If your custom WPF control just would not show up
by Arun Jacob
This article shows how to implement INotifyPropertyChanged.
by comiscience
My original article link is here: http://www.codeproject.com/Tips/752333/Improve-WPF-performance-with-RenderOptions Introduction Too many articles have been presented on how to improve WPF performance with several global methods.
by Ivan Krivyakov
In GAC we trust
by Paulo Zemek
Infinite maps (for games or similar)
by Raymund Macaalay
Install Sharepoint 2010 in a non Server OS
by rudigrobler
Imagine for a second that you are writing an application like Outlook… let's call it MiMail.exe! This application is very basic and has 3 views that are relevant to me! I want to be able to see my mail, contacts and calendar!
by Super Lloyd
Introducing DirectX to WPF
by Ashish Kaila
Introducing MixModes Synergy 2010
by Pragmateek
Introduction As a WPF developer for years I was recently concerned by the new direction chosen by Microsoft on its client platforms with the rise of the brand new WinRT framework. I was concerned for good reasons: I’ve suffered from … Continue reading →
by Marius Bancila
I will show how to provide keyboard input for WPF controls hosted in a Win32 applications.
by Vangos Pterneas
Complete body tracking in Kinect.
by Vangos Pterneas
Kinect and WPF: Getting the raw and depth image using OpenNI.
by Vangos Pterneas
Painting with Kinect using OpenNI
by Daniel Vaughan
Implementing field level change notification in WPF, and how a Lambda Expression can be used to specify a composite property that raises change notifications automatically whenever an associated property changes.
by Ivan Leonenko
Local image caching with custom control in WPF
by Ashish Kaila
Localization in WPF applications
by Pete O'Hanlon
Logging display and WPF
by erik_nl
Logging with dynamic objects in .NET 4.0 (part 2-n) - user interaction logging
by rudigrobler
In this, my first edition of Mahhala, we will look at the awesome set of controls by Kevin Moore called Bag of Tricks (BOT).
by rudigrobler
Mahhala (a isiZulu word for free or without charge) is a new series that showcase some of the cool free WPF/Silverlight controls available. You can learn a lot by reading other people's source code.
by rudigrobler
Mahhala (isiZulu word for free or without charge) is a new series that showcase some of the cool free WPF/Silverlight controls available… “You can learn a lot by reading other people's source code. That's the idea behind this series.
by rudigrobler
Fluent Ribbon Control Suite
by rudigrobler
Discussion with Philipp Sumi, the creator of WPF NotifyIcon
by rudigrobler
WPF NotifyIcon
by rudigrobler
WPF NotifyIcon
by Manas_Patnaik
Make parent window blurred for better focus on UI, in WPF
by rudigrobler
Make your WPF buttons color hot-track!
by rudigrobler
Make your WPF buttons color hot-track!
by SteveAdey
Here's a quick post to show how to make images (and any other framework element) react to an ICommand when clicked.
by Adnan Boz
Massively Parallel Random Nunber Generation using CUDA C, Thrust and C#
by Colin Eberhardt
This blog post looks at the problem of showing modal dialog windows in applications that target both the Silverlight and WPF platforms. A solution is provided which allows modal dialogs to be written that work well for both technologies.
by Wes Aday
This is a beginners introduction to the MVP and MVVM design pattern as implemented in Prism
by Wes Aday
This code that I am presenting here is a derivative of the demo application written by Josh Smith, http://joshsmithonwpf.wordpress.com.
by User 271009
Much improved .NET 4.0 WPF text rendering
by SteveAdey
Multi-lingual UIs in WPF
by jmix90
Here is the next episode of our serie MVVM - Creating ViewModel.
by jmix90
Here is the next episode of our serie MVVM - Creating ViewModel.
by jmix90
When you create WPF applications, you may (or you should !) use the M-V-VM pattern and so have to use/create ViewModel.The viewModel job is mainly to expose properties of your businessObjects to your views, ready for binding. Here is a first solution to create ViewModel from your model.
by jmix90
How to integrate the Office Ribbon respecting the pattern (especially the commands)
by Wes Aday
This is the second part in a two part article on the Model-View-ViewModel design pattern in WPF.The ModelOur friend the Model is responsible for getting and holding onto the data. The data could come from anywhere, a file, a database, thin air, etc.
by SteveAdey
This is an example to show the use of MVVM in creating a grouping listbox.
by SteveAdey
Setting up an MVVM application and some simple binding to text and commands.
by SteveAdey
This is a quick demonstration of how to use the standard WPF TabControl inside MVVM.
by Nikos Baxevanis
This post aims to provide a way to implement the Model View ViewModel (MVVM) architectural pattern using Plain Old CLR Objects (POCOs) while taking full advantage of .NET 4.0 DynamicObject Class.
by Barry Lapthorn
How to create an MVVM application using MVVM Light with multiple views in one window
by Ashish Kaila
WPF Control Development Unleashed - my favorite WPF book of all times
by User 271009
New Options for Visual Studio 2010 Beta2 WPF and Silverlight Projects
by Arik Poznanski
Implementing a "stringof" operator using expression trees
by Rahman Masudur
Avoiding scrolling for XBAP in IFrame.
by Mario Vernari
Numpad's decimal point correction for WPF
by Leung Yat Chun
Reduce the property declaration code to one line, yet still usable directly.
by rudigrobler
I have seen so many people use FlowDocuments to create reports! This is really cool but what if you need a more complex reporting engine! Can it handle it? Can it be abstracted and reused! Do you have to start from scratch each time?
by Arik Poznanski
Order in Chaos: Dependency Property Value Resolution
by rudigrobler
OutlookBar for WPF & Silverlight
by rudigrobler
OutlookBar for WPF & Silverlight
by rudigrobler
OutlookBar for WPF & Silverlight
by Aron Weiler
Like the title says... a simple (very simple) page transition control for WPF
by Irina Pykhova
How to parse JSON to C# in WinRT, Silverlight, WPF, Windows Phone.
by Aron Weiler
Make any image in WPF pop up and hit you in the face!
by Ashish Kaila
In this tutorial, I will take a practical example of a card game and illustrate how to model a playing card in WPF and define templates for defining visual aspect of the card as per the sign and the value of the card.
by Raymund Macaalay
Programatically Copy and Check In a Full Directory to Sharepoint
by Philipp Sumi
Here are some quick and dirty tooltips - revisited and interactive
by Roberto Sonnino
Quick WPF tip: Generic Converter MarkupExtension
by Roberto Sonnino
Quick WPF/Silverlight tips to make great videos of your apps
by Abhishek Sur
RegisterName for StoryBoards in WPF (NameScopes)
by Steve Maier
The same database and the same RIA Services can be used as a Web Service by using some simple additions to the setup of your project.
by kribo
Ribbon (WPF): ribbon:RibbonComboBox
by Pete O'Hanlon
Sensing the future with WPF
by Joel Ivory Johnson
Setting the Display for a WPF Application
by Raymund Macaalay
Sharepoint 2010 Business Data Connectivity Service 101
by Sohel_Rana
Introduction to SharePoint 2010 Client Object Model
by MJ Ferdous
How to customize theme code for MYTHEME theme
by Syed Adnan Ahmed
SharePoint Search crawl error on Windows Server 2008 Operating System
by User 271009
Silverlight 3 & 4 library sharing with .NET 4.0 library or WPF
by Abhijit Jana
SharePoint 2010 supports fully integration with Silverlight application either of Silverlight In Browser  or as a Silverlight OOB ( Out Of Browser) aplications.
by jmix90
Simple properties Mapper by reflection: Stop copying manually each property of your objects !
by rudigrobler
Simplified TextBox focus in WPF 4
by User 271009
Simplifying Prism WPF Navigation – Synchronous Navigation Confirmation
by User 271009
Microsoft patterns & practices Prism 4 library and guidance gives WPF and Silverlight developers a very solid foundation for creating business applications.
by Leom Burke
An approach to skinning in WPF using Merged Resource Dictionaries
by Ivan Krivyakov
Some anti-patterns I am experiencing first hand
by TheDhruv
Export data from a SQL Server database table to an Excel sheet day wise.
by Melick
How to install three tier SP Farm with Medium Security
by Rajesh.Sitaraman
Helps to mark the posts as Sticky in Sharepoint Discussion Board.
by Timmy Kokke
The Storyboard extension is available for users of Visual Studio Ultimate, Premium and Test Professional.
by User 271009
Stuff – WPF Line of Business using MVVM Video Tutorial
by Syed Adnan Ahmed
I wrote down my notes during the European SharePoint Conference held in London and decided to share best practices discussed in the sessions that I had attended.
by Simon Jackson
Syncfusion’s "Succinctly" series, one of the largest free (and still growing) set of technical books covering everything from languages, to source control systems and beyond.
by Abhishek Sur
Taskbar with Window Maximized and WindowState to None in WPF
by Pete O'Hanlon
Textbox Drag/Drop in WPF
by Rahman Masudur
Tooltip service and tooltip facility of WPF
by Afzaal Ahmad Zeeshan
This is a small post, containing a few suggestions for users of Microsoft Cognitive Services.
by Nick Polyak
This post talks about generic Tree structures in C#.
by jmix90
In this post, we will see how to make a custom control fully useable in a Coded UI Tests scenario.
by DotNetForAll
The article will take you through the layout process in WPF.
by Pete O'Hanlon
Providing Undo/Redo across VMs (part 1 - simple properties)
by Abhishek Sur
The article will demonstrate how you could handle Unhandled Exceptions from both UI and NonUI threads for your WPF application.
by adityaswami89
This article will guide you if you want to create your own custom ORM or a wrapper over the ORM. This is only for demo towards the Unit of work pattern with Repository and a singleton Session class.
by pytelg
This post describes how to execute unmanaged C++ OpenGL drawing on Windows Forms and WPF to achieve very fast and reliable graphics rendering over stunning GUI done in WPF or Windows Forms.
by Qwertie
UpdateControls not only keeps your GUI up-to-date, but it also separates the GUI from the rest of the code better than any framework I have seen before.
by jmix90
How to use AttachedProperties to add behaviors to the components (Ramora pattern)
by Melick
I had a difficult time to get user profile service synchronization started. Following are the errors encountered to me when I tried to start the synchronization manually as well as through SharePoint.
by jmix90
In this post, we'll discover how to access the template children by using the FindName method even on UserControl.
by Rahman Masudur
Few tricks about using a Resource Dictionary in WPF
by mrjvdveen
I needed to check the available style keys in our main app.xaml file and see which ones are no longer needed. As there are currently 66 style keys in that file and it's growing, I didn't feel much for taking each key and searching through our source code to find out. Time to build a small tool.
by Colin Eberhardt
This technical blog post details a novel technique for leveraging the power of CSS selectors within WPF.
by PratapReddyP
Using Delegate Control in Sharepoint
by Sean A. Hanley
How to use the WPF Task Dialog wrapper in an MVVM application.
by Steve Naidamast
Using the Xceed “Busy Indicator” control
by Steve Naidamast
The complexity that comes with the implementation of this type of control stems from the fact that you must have some knowledge of handling multi-threaded processes in a WPF application.
by John Michael Hauck
In this post, I briefly discuss the design behind the VisibilityControl.
by rudigrobler
The top requested features for Silverlight, WP7, and WPF
by Kunal Chowdhury «IN»
In this post, I will discuss about developing a simple multitouch application using .NET 3.5 SP1.
by Sacha Barber
Windows7 / VS2010 / WPF 4 demo app
by kribo
How to use System.Windows.Forms.ColorDialog in a WPF project
by Abhishek Sur
Working with ICollectionViewSource in WPF
by Manoj.Kumar12
I will dive into a way we can create reusable generic 2D grid which is bound to object collections.
by Leung Yat Chun
Titlebar in Aero theme
by Ivan Krivyakov
WPF Bindings
by Andrei Ion Rînea
WPF Default Binding Format Culture
by DotNetLead.com
Drag and drop behaviour in WPF
by kribo
WPF dynamic TabControl - TabItems
by Stephen Brannan
WPF Enumeration Data Provider
by Ivan Krivyakov
WPF Grid: Showing Tooltip over Empty Space
by Arik Poznanski
In this post, we’ll see a few interesting things about WPF’s Dispatcher class.
by DevLake
WPF Master Details MVVM Application
by gnikolaropoulos
How to build a sample window (no resizing) with WPF which will look like Metro.
by Martin Hinshelwood
WPF Ninject Dojo: The Data Provider
by Steve Naidamast
WPF page navigation - poorly documented but helpful tip
by Martin Hinshelwood
WPF scale transform behaviour
by Arik Poznanski
How to enforce that your WPF application has only one instance
by Steve Maier
Now, WPF applications can have a simple splash screen for free.
by HeWillem
How to solve the TabControl focus behavior with invisible tabs
by Ashish Kaila
Some useful WPF tips.
by Leung Yat Chun
I hope this rewrite can reduce the effort needed to implement other touch based code and other gesture.
by Ivan Krivyakov
New instance of a merged dictionary will be created for every user control. This can (and does) lead to increased loading time and memory footprint.
by Koder Hack
The ContentTicker control is a generic control that can be used to slide content.
by Leom Burke
WPF/Silverlight ListBox and equality checking
by Sacha Barber
WPF: a strange layout issue
by Sacha Barber
WPF: A true WPF browser control that can bend it like Beckham
by Arik Poznanski
Back in this post I showed you how you can easily add a fade-in / fade-out effect to a UIElement that changes its Visibility property, using a simple attached property.Some people encountered a problem using this property when they bind the UIElement to a model which initially hides the control.
by Ivan Krivyakov
Preventing zombie animations from freezing your properties
by mastermel
Here's a method I've found for centering a window to either its parent or the main window for the application, in WPF.
by Steve Psaltis
I could not find a good solution to this anywhere, so here is mine (which I think is a bit of an abuse of attached properties, but hey ho!).
by Ivan Krivyakov
WPF: Context Menu on List Item
by Steve Psaltis
How to create a scalable glass button in Blend
by Steve Psaltis
So how does one add a DataTrigger to a TextBlock and provide some default value?
by Sacha Barber
WPF: DatePicker With Holiday Blackouts And ToolTips
by Sacha Barber
WPF: New Threading Component
by Ivan Krivyakov
WPF: Passing Data to Sub-Views via DataContext Causes Trouble
by Sacha Barber
RatingsControl that supports fractions
by Shweta Lodha
The differences between StaticResource and DynamicResource.
by jmix90
A post about creating a PNG from an XAML file
by S Ravi Kumar (TechieRathore)
Creating WPF applications using Xamarin.Forms