Click here to Skip to main content
15,885,740 members
Everything / Desktop Programming / WPF

WPF

WPF

Great Reads

by Dr. WPF
.NET 3.5 SP1 is here! It's time to break out your DirectX skills. This article provides the information necessary to get started using a new DirectX interop feature in WPF called D3DImage.
by Daniel Vaughan
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
by Fredrik Bornander
WPF Implementation of the spinning panel frequently used on the iPhone
by Sacha Barber
It would probably be like Cinch, an MVVM framework for WPF.

Latest Articles

by Macabies Gilles
An easy-to-use filterable, multilingual custom DataGrid control for managing and filtering data for your WPF applications
by gabriel4sonic
Shows how to use OpenGL in a .NET WPF application by directly incorporating an OpenGL window as a child of the main WPF window, making it behave more like a control
by Jo_vb.net
Part 2 of my article about 'Schafkopf' introduces Automated Bidding
by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo

All Articles

Sort by Score

WPF 

27 Dec 2017 by Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
28 Nov 2011 by Akos Orban
Set Owner of a WPF Window to a Form
2 Jul 2015 by Bharat Mallapur
Sample project to host MS-Chart in your WPF application
9 Feb 2018 by Meshack Musundi
How to highlight TextBlock text using attached properties
22 Nov 2013 by dyma
Sunflower fractal, so that you can play and create a wonderful image
16 May 2015 by Mark Heath
Learn how to get started with MahApps.Metro, an open source library for giving your WPF applications a modern look and feel.
11 Oct 2017 by Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
9 Sep 2013 by The Myth
Databinding examples in WPF for VB.NET.
27 Jan 2015 by SREENATH GANGA
Auto updating the exe if the latest exe is available in the network share
20 Oct 2015 by Manish Dubeyy
How to debug the design time errors in WPF XAML file?
12 Aug 2013 by Le Sourcier
This tip helps in using font icons as ImageSource.
1 Oct 2015 by Clifford Nelson
Presents a behavior to prevent entry of anything but digits into a control
6 Aug 2016 by Clifford Nelson
This tip presents a way to have disabled items in your ComboBox
26 Sep 2017 by Clifford Nelson
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
26 Apr 2020 by Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
11 Jan 2016 by hesido
A super simple method for listing Enum members in WPF using databinding
2 Oct 2012 by MarkLTX
A WPF window for displaying exceptions, nested inner exceptions, and their properties using a tree and rich text.
20 Feb 2013 by Lars Pehrsson
Highligting and marking indvidual dates in a WPF Calendar
19 Jan 2018 by ergohack
This roguish way of moving a WorkItem, directly 'in-place', through SQL leaves all of the previous data associations intact, but portends issues with future major updates and current TFS Data Warehousing.
16 Aug 2017 by Clifford Nelson
This is a simple behavior that can be attached to a ContentControl and allows zooming and dragging the Content.
4 Apr 2018 by Clifford Nelson
This behavior will require that for any Group of ToggleButton/Checkbox controls that are associated together, the user cannot set all to not IsChecked.
28 Feb 2022 by Saurabh Singh _
A simple approach to handle Airspace problem
27 Apr 2019 by OriginalGriff
This is an alternative for "List Only Files Created or Modified Yesterday in C#"
6 Jun 2012 by Clifford Nelson
A little trick that will more completely fill the DatePicker background from the code-behind.
6 Aug 2013 by d.moncada
Change the accessed, modified, and created date attributes of a file
10 Jan 2015 by dietmar schoder
Poisson disc algorithm: fundamental C# classes and methods for the artwork production in the area of generative art.
6 Jul 2017 by Alexander Sharykin
No more Template copies
25 Jun 2018 by Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
3 Mar 2019 by Clifford Nelson
This tip presents a behavior that will allow buttons to control the items in a WPF Selector (or ListBox) control.
16 Feb 2024 by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
3 Jul 2013 by ntg123
Entire WPF's objects model image.
12 Aug 2014 by Jdarmanovich
WPF MVVM Binding for Multiple Radio Buttons and Win 8 Metro Theme
23 Sep 2014 by Cryptonite
The Blum Micali algorithm provides for a cryptographically secure PRNG (pseudo random number generator).
31 Jan 2015 by Mayur Shah
Markup Extension that allows you to declare Generic classes in Xaml
27 Apr 2016 by Clifford Nelson
This article presents a way to display a message in a single control with several sources in a priority order
8 Jul 2016 by User 10711509
A custom WPF TextBox whose height is animated when the text overflows.
5 Jan 2017 by Clifford Nelson
This is a simple popup that includes drag capability. The code should be helpful to anyone looking to create a control drag capability.
7 Feb 2017 by Clifford Nelson
This tip presents a control that is derived from the ItemsControl that uses a UniformGrid to display.
2 Aug 2017 by Clifford Nelson
Fairly straight forward way of binding in a HierarchicalDataTemplate or DataTemplate to the parent ViewModel when using the TreeView control.
3 Apr 2018 by Clifford Nelson
Normally a popup will stay open until explicitly closed. The Behavior will close the Popup if the mouse is clicked within or outside the Popup area or leaves the Popup area.
26 May 2018 by Vladan.Obradovic
How to easily write a user's guide for your application using different file extensions
20 Jun 2018 by Clifford Nelson
This behavior will select the entire text when a TextBox or PasswordBox gains focus
30 Oct 2018 by Carsten Breum
Data Virtualization example with a pagesize and async data request
14 Apr 2010 by Nish Nishant
John, here's a simpler way to do this. This will also handle strings like "3*" which are valid grid length values in Xaml.private RowDefinition MakeRowDefinition(string height){ RowDefinition rowDef = new RowDefinition(); GridLengthConverter converter = new...
4 Oct 2011 by Jeremy Hutchinson
Use OnPropertyChanged events without Magic Strings
18 Nov 2011 by rhuiden
I would first like to say that I have been through the same situation, but never took the time to develop a more dynamic converter. I like your idea, but don't like the implementation. If I know what I want to happen (when the value is true then make the control hidden), I have to do some mental...
13 Nov 2012 by maximaximum
The article describes how to draw a grid of vertical and horizontal lines in WPF.
19 Mar 2015 by Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
19 Jun 2015 by ergohack
System.Data.SQLite is great, but was missing some BLOB support. Switching to the native source project was easier than expected and provided significant functionality benefits.
4 Sep 2015 by Igor Sorokin
In this article I would like to describe simple WPF application for showing System.Windows.SystemColors list.
9 Aug 2015 by Clifford Nelson
This tip provides an alternate way to combine data with text in a WPF control using a ValueConverter that could be considered easier.
19 Dec 2015 by ryanba29
This is a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
29 Dec 2015 by ryanba29
First Draft. This is day three of a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
1 Mar 2016 by Sergey Alexandrovich Kryukov
In response to an interesting Quick Questions & Answers Inquirer's request, I'm showing how to create an impression of window rotation in a simple way
29 Jun 2016 by Praveen_Kumar Gupta
with the help of this article developer can add gridlines on canvas , and with slider control resize them easily
17 Oct 2017 by Clifford Nelson
A Behavior is presented that will ensure that only one CheckBox (ToggleButton) will be checked with the same GroupName within the visual tree of the control to which this behavior is attached.
18 Apr 2018 by Clifford Nelson
I had a situation where a control appearing was significantly affected by the initialization of the UserControls. This behavior fixed my problem.
27 Jan 2020 by Vassili Kravtchenko-Berejnoi
Use of System.WeakReference for self-cleanable registration of (short-life) objects
15 Aug 2020 by Clifford Nelson
A media player application specifically designed to support listening to language learning tracks
6 Apr 2011 by Mahmudul Haque Azad
I found a better alternative of snoop... WPF Inspector! http://wpfinspector.codeplex.com/[^]
2 Jul 2012 by Clifford Nelson
Why didn’t Microsoft provide this in the ObservableCollection?
9 May 2013 by Vinoth Kumar J
Designer debugging in WinRT
25 Sep 2013 by Punamchand Dhuppad
In this tip we will talk about how to apply the same font style to TextBlock and Glyphs controls from code-behind.
3 Nov 2013 by carcabot
Multi Language Switcher Dynamically written in WPF VB.NET using XMLDataProvider
14 Sep 2014 by Mario Vernari
Here is a simple trick for simulating the shared-sizing feature of the WPF Grid even in a StackPanel fashion.
10 Oct 2014 by Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
2 Jan 2015 by dietmar schoder
Image sections and images: fundamental C# classes and methods for the artwork production in the area of generative art.
6 Jan 2016 by Luis Manuel Prospero Mano Batista
Another simple way to bind one Enumeration to a Combobox or to a Listbox
6 Apr 2017 by Sergey Alexandrovich Kryukov
Focused TextBox blocks Undo/Redo invocation of other components, but the problem can be solved comprehensively
2 Sep 2017 by Clifford Nelson
Presents a very simple control with an IsChecked property that allows definition of two different contents depending of if IsChecked property value is true or false
29 Dec 2017 by wim4you
Show UniformGrid and scroll through a few thousand images, UI virtualization
2 Apr 2018 by Clifford Nelson
This tip provides a behavior that will reset all RadioButton controls within a Control that has this behavior when the Visibility changes.
5 Apr 2018 by Clifford Nelson
Normally, there is no need to ensure that types exactly match when using a Binding. For instance, the Control property double to and int in a ViewModel
27 Apr 2018 by Clifford Nelson
This is a behavior that that will reset ToggleButton derived controls to false (or a specified default value) when the container's visibility becomes false.
16 Nov 2020 by Erik Nagel
Usable demo demonstrating some aspects of application architecture
22 May 2010 by #realJSOP
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
9 Jun 2011 by Kanwal Shehzad
How to avoid WPF TreeView SelectedItemChanged being called twice
2 Jun 2012 by Clifford Nelson
A rather quick and dirty way of creating a filtered combo box in WPF.
23 Apr 2013 by Fitim Skenderi
Displaying an adorner that contains a control on top of another control in WPF
17 Jul 2013 by JO Hyeong-Ryeol
Introduces the DragSource class in the Nicenis project.
18 Feb 2014 by Shabra
How to use Resx files to internationalize your code
17 Jun 2014 by cjb110
A String To Brush Converter for WPF/Silverlight
20 Jun 2014 by NobsterTheLobster
Implements a taskbar notifier using an invisible window and a popup control
23 Oct 2014 by Thomas Mahlberg
This tip describes how to handle BusyIndication and progress report in an MVVM project for several scenarios.
26 Sep 2015 by Piyush Manharlal
Using integer instead of Enum for ComboBox and Radio Button in XAML
21 Nov 2015 by Clifford Nelson
Using a breakpoint in this WPF Value Converter which basically does nothing can be of assistance in binding when the object is not well understood.
17 Dec 2015 by Umer Qureshi
A tip explaining the difference between Stackpanel and a Grid layout in WPF
24 Mar 2016 by Clifford Nelson
WPF popup enumerated button control
21 Apr 2016 by ryanba29
I am going to demonstrate how to convert an address to a latitude and longitude using Google Maps Geocode. Then take the latitude and longitude and build a Uri that opens that place in Google Maps.
6 Jun 2017 by Nick Tziamihas
In this article, we show how you can execute asynchronous code on the main thread without async, by replicating Unity's coroutine framework.
2 May 2018 by Clifford Nelson
The tip provides a behavior that will set a control to a default value when the Visibility changes
31 Jul 2019 by #realJSOP
Make data exchange in MVVM easy on yourself
28 Feb 2011 by jmix90
Creating a full-screen window in WPF is quite simple, set WindowState to Maximized and WindowStyle to None. However, a border is still visible on the bottom and on the right sides. In this post we'll discover how to remove it.
7 Jan 2011 by Venkatesh Mookkan
Databinding Concept in WPF
22 Aug 2011 by VallarasuS
Changing the BackGround of an UI Element based on MousePosition
5 Oct 2011 by Shmuel Zang
This tip shows how we can extend a Button control to support suspension of its Click event, in order to perform some animations before the Click event is raised.
24 Apr 2013 by Lee Reid
How to make a splash screen appear for a minimum duration with very little code
23 Jun 2013 by Aaron Amberman
Defer algorithms to run once within a given time span
19 Feb 2014 by Hamid Shahid Aijazi
Demonstrates how to restrict your WPF application to a specific window size while keeping it maximizable.