Click here to Skip to main content
14,970,219 members
Everything / Desktop Programming / WPF

WPF

WPF

Great Reads

by Graeme_Grant
Working with simple JSON objects and collections to Custom Converters and Transformations into .NET classes
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

Latest Articles

by Gaston Verelst
In this article, we will see how to convert a Windows .NET 6 WPF application to a Windows on Arm (WoA) application.
by Nilay M Joshi
Multiselect Combobox - Custom control for WPF
by G.TR
This tip shows two different approaches for disposing view models that use Reactive Extension
by Peter Huber SG
WPF LinearGradientBrush parameters are confusing and need a proper explanation

All Articles

Sort by Score

WPF 

Please Sign up or sign in to vote.
27 Dec 2017
Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
Please Sign up or sign in to vote.
28 Nov 2011
Akos Orban
Set Owner of a WPF Window to a Form
Please Sign up or sign in to vote.
2 Jul 2015
Bharat Mallapur
Sample project to host MS-Chart in your WPF application
Please Sign up or sign in to vote.
9 Feb 2018
Meshack Musundi
How to highlight TextBlock text using attached properties
Please Sign up or sign in to vote.
22 Nov 2013
dyma
Sunflower fractal, so that you can play and create a wonderful image
Please Sign up or sign in to vote.
16 May 2015
Mark Heath
Learn how to get started with MahApps.Metro, an open source library for giving your WPF applications a modern look and feel.
Please Sign up or sign in to vote.
27 Jan 2015
SREENATH GANGA
Auto updating the exe if the latest exe is available in the network share
Please Sign up or sign in to vote.
12 Aug 2013
Le Sourcier
This tip helps in using font icons as ImageSource.
Please Sign up or sign in to vote.
9 Sep 2013
The Myth
Databinding examples in WPF for VB.NET.
Please Sign up or sign in to vote.
20 Oct 2015
Manish Dubeyy
How to debug the design time errors in WPF XAML file?
Please Sign up or sign in to vote.
6 Aug 2016
Clifford Nelson
This tip presents a way to have disabled items in your ComboBox
Please Sign up or sign in to vote.
11 Oct 2017
Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
Please Sign up or sign in to vote.
1 Oct 2015
Clifford Nelson
Presents a behavior to prevent entry of anything but digits into a control
Please Sign up or sign in to vote.
26 Sep 2017
Clifford Nelson
1 alternative  
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
Please Sign up or sign in to vote.
11 Jan 2016
hesido
A super simple method for listing Enum members in WPF using databinding
Please Sign up or sign in to vote.
20 Feb 2013
Lars Pehrsson
Highligting and marking indvidual dates in a WPF Calendar
Please Sign up or sign in to vote.
19 Jan 2018
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.
Please Sign up or sign in to vote.
16 Aug 2017
Clifford Nelson
This is a simple behavior that can be attached to a ContentControl and allows zooming and dragging the Content.
Please Sign up or sign in to vote.
4 Apr 2018
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.
Please Sign up or sign in to vote.
6 Jun 2012
Clifford Nelson
A little trick that will more completely fill the DatePicker background from the code-behind.
Please Sign up or sign in to vote.
2 Oct 2012
MarkLTX
A WPF window for displaying exceptions, nested inner exceptions, and their properties using a tree and rich text.
Please Sign up or sign in to vote.
6 Aug 2013
d.moncada
Change the accessed, modified, and created date attributes of a file
Please Sign up or sign in to vote.
10 Jan 2015
dietmar schoder
Poisson disc algorithm: fundamental C# classes and methods for the artwork production in the area of generative art.
Please Sign up or sign in to vote.
6 Jul 2017
Alexander Sharykin
No more Template copies
Please Sign up or sign in to vote.
27 Apr 2019
OriginalGriff
This is an alternative for "List Only Files Created or Modified Yesterday in C#"
Please Sign up or sign in to vote.
12 Aug 2014
Jdarmanovich
WPF MVVM Binding for Multiple Radio Buttons and Win 8 Metro Theme
Please Sign up or sign in to vote.
23 Sep 2014
Cryptonite
The Blum Micali algorithm provides for a cryptographically secure PRNG (pseudo random number generator).
Please Sign up or sign in to vote.
31 Jan 2015
Mayur Shah
1 alternative  
Markup Extension that allows you to declare Generic classes in Xaml
Please Sign up or sign in to vote.
27 Apr 2016
Clifford Nelson
This article presents a way to display a message in a single control with several sources in a priority order
Please Sign up or sign in to vote.
5 Jan 2017
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.
Please Sign up or sign in to vote.
7 Feb 2017
Clifford Nelson
This tip presents a control that is derived from the ItemsControl that uses a UniformGrid to display.
Please Sign up or sign in to vote.
2 Aug 2017
Clifford Nelson
Fairly straight forward way of binding in a HierarchicalDataTemplate or DataTemplate to the parent ViewModel when using the TreeView control.
Please Sign up or sign in to vote.
26 May 2018
Vladan.Obradovic
How to easily write a user's guide for your application using different file extensions
Please Sign up or sign in to vote.
20 Jun 2018
Clifford Nelson
This behavior will select the entire text when a TextBox or PasswordBox gains focus
Please Sign up or sign in to vote.
25 Jun 2018
Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
Please Sign up or sign in to vote.
3 Mar 2019
Clifford Nelson
This tip presents a behavior that will allow buttons to control the items in a WPF Selector (or ListBox) control.
Please Sign up or sign in to vote.
26 Apr 2020
Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
Please Sign up or sign in to vote.
3 Jul 2013
ntg123
Entire WPF's objects model image.
Please Sign up or sign in to vote.
14 Apr 2010
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...
Please Sign up or sign in to vote.
4 Oct 2011
Jeremy Hutchinson
1 alternative  
Use OnPropertyChanged events without Magic Strings
Please Sign up or sign in to vote.
18 Nov 2011
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...
Please Sign up or sign in to vote.
13 Nov 2012
maximaximum
The article describes how to draw a grid of vertical and horizontal lines in WPF.
Please Sign up or sign in to vote.
19 Mar 2015
Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
Please Sign up or sign in to vote.
19 Jun 2015
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.
Please Sign up or sign in to vote.
4 Sep 2015
Igor Sorokin
In this article I would like to describe simple WPF application for showing System.Windows.SystemColors list.
Please Sign up or sign in to vote.
9 Aug 2015
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.
Please Sign up or sign in to vote.
19 Dec 2015
ryanba29
This is a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
Please Sign up or sign in to vote.
29 Dec 2015
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.
Please Sign up or sign in to vote.
1 Mar 2016
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
Please Sign up or sign in to vote.
29 Jun 2016
Praveen_Kumar Gupta
with the help of this article developer can add gridlines on canvas , and with slider control resize them easily
Please Sign up or sign in to vote.
8 Jul 2016
User 10711509
A custom WPF TextBox whose height is animated when the text overflows.
Please Sign up or sign in to vote.
17 Oct 2017
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.
Please Sign up or sign in to vote.
18 Apr 2018
Clifford Nelson
I had a situation where a control appearing was significantly affected by the initialization of the UserControls. This behavior fixed my problem.
Please Sign up or sign in to vote.
30 Oct 2018
Carsten Breum
Data Virtualization example with a pagesize and async data request
Please Sign up or sign in to vote.
27 Jan 2020
Vassili Kravtchenko-Berejnoi
Use of System.WeakReference for self-cleanable registration of (short-life) objects
Please Sign up or sign in to vote.
15 Aug 2020
Clifford Nelson
A media player application specifically designed to support listening to language learning tracks
Please Sign up or sign in to vote.
6 Apr 2011
Mahmudul Haque Azad
I found a better alternative of snoop... WPF Inspector! http://wpfinspector.codeplex.com/[^]
Please Sign up or sign in to vote.
2 Jul 2012
Clifford Nelson
Why didn’t Microsoft provide this in the ObservableCollection?
Please Sign up or sign in to vote.
9 May 2013
Vinoth Kumar J
Designer debugging in WinRT
Please Sign up or sign in to vote.
25 Sep 2013
Punamchand Dhuppad
In this tip we will talk about how to apply the same font style to TextBlock and Glyphs controls from code-behind.
Please Sign up or sign in to vote.
3 Nov 2013
carcabot
Multi Language Switcher Dynamically written in WPF VB.NET using XMLDataProvider
Please Sign up or sign in to vote.
10 Oct 2014
Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
Please Sign up or sign in to vote.
2 Jan 2015
dietmar schoder
Image sections and images: fundamental C# classes and methods for the artwork production in the area of generative art.
Please Sign up or sign in to vote.
6 Jan 2016
Luis Manuel Prospero Mano Batista
Another simple way to bind one Enumeration to a Combobox or to a Listbox
Please Sign up or sign in to vote.
6 Apr 2017
Sergey Alexandrovich Kryukov
Focused TextBox blocks Undo/Redo invocation of other components, but the problem can be solved comprehensively
Please Sign up or sign in to vote.
2 Sep 2017
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
Please Sign up or sign in to vote.
29 Dec 2017
wim4you
Show UniformGrid and scroll through a few thousand images, UI virtualization
Please Sign up or sign in to vote.
2 Apr 2018
Clifford Nelson
This tip provides a behavior that will reset all RadioButton controls within a Control that has this behavior when the Visibility changes.
Please Sign up or sign in to vote.
3 Apr 2018
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.
Please Sign up or sign in to vote.
5 Apr 2018
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
Please Sign up or sign in to vote.
27 Apr 2018
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.
Please Sign up or sign in to vote.
16 Nov 2020
Erik Nagel
Usable demo demonstrating some aspects of application architecture
Please Sign up or sign in to vote.
22 May 2010
#realJSOP
1 alternative  
Programatically set grid row/column sizes (yes, even "Auto", "*", and "X*" - thanks Nish).
Please Sign up or sign in to vote.
9 Jun 2011
Kanwal Shehzad
How to avoid WPF TreeView SelectedItemChanged being called twice
Please Sign up or sign in to vote.
2 Jun 2012
Clifford Nelson
A rather quick and dirty way of creating a filtered combo box in WPF.
Please Sign up or sign in to vote.
23 Apr 2013
Fitim Skenderi
Displaying an adorner that contains a control on top of another control in WPF
Please Sign up or sign in to vote.
17 Jul 2013
JO Hyeong-Ryeol
Introduces the DragSource class in the Nicenis project.
Please Sign up or sign in to vote.
18 Feb 2014
Shabra
How to use Resx files to internationalize your code
Please Sign up or sign in to vote.
17 Jun 2014
cjb110
A String To Brush Converter for WPF/Silverlight
Please Sign up or sign in to vote.
20 Jun 2014
NobsterTheLobster
Implements a taskbar notifier using an invisible window and a popup control
Please Sign up or sign in to vote.
14 Sep 2014
Mario Vernari
Here is a simple trick for simulating the shared-sizing feature of the WPF Grid even in a StackPanel fashion.
Please Sign up or sign in to vote.
23 Oct 2014
Thomas Mahlberg
This tip describes how to handle BusyIndication and progress report in an MVVM project for several scenarios.
Please Sign up or sign in to vote.
26 Sep 2015
Piyush Manharlal
Using integer instead of Enum for ComboBox and Radio Button in XAML
Please Sign up or sign in to vote.
21 Nov 2015
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.
Please Sign up or sign in to vote.
17 Dec 2015
Umer Qureshi
A tip explaining the difference between Stackpanel and a Grid layout in WPF
Please Sign up or sign in to vote.
24 Mar 2016
Clifford Nelson
WPF popup enumerated button control
Please Sign up or sign in to vote.
21 Apr 2016
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.
Please Sign up or sign in to vote.
6 Jun 2017
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.
Please Sign up or sign in to vote.
2 May 2018
Clifford Nelson
The tip provides a behavior that will set a control to a default value when the Visibility changes
Please Sign up or sign in to vote.
31 Jul 2019
#realJSOP
Make data exchange in MVVM easy on yourself
Please Sign up or sign in to vote.
28 Feb 2011
jmix90
1 alternative  
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.
Please Sign up or sign in to vote.
7 Jan 2011
Venkatesh Mookkan
Databinding Concept in WPF
Please Sign up or sign in to vote.
22 Aug 2011
VallarasuS
Changing the BackGround of an UI Element based on MousePosition
Please Sign up or sign in to vote.
5 Oct 2011
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.
Please Sign up or sign in to vote.
24 Apr 2013
Lee Reid
How to make a splash screen appear for a minimum duration with very little code
Please Sign up or sign in to vote.
23 Jun 2013
Aaron Amberman
Defer algorithms to run once within a given time span
Please Sign up or sign in to vote.
19 Feb 2014
Hamid Shahid Aijazi
Demonstrates how to restrict your WPF application to a specific window size while keeping it maximizable.
Please Sign up or sign in to vote.
5 Mar 2014
OrlandoCurioso
Invoke Button.Click event and associated ICommand on the current default button.
Please Sign up or sign in to vote.
1 Apr 2014
sbarnes
Sometimes better isn't, necessarily
Please Sign up or sign in to vote.
4 Jun 2014
arpanmukherjee1
RelayCommand.CanExecute in MVVM with attributes not WPF Requery
Please Sign up or sign in to vote.
7 Aug 2014
Gold$Coin
This tip will help you to create a collection from a DataSet
Please Sign up or sign in to vote.
6 Feb 2015
Richard Deeming
This is an alternative for "Markup Extension for Generic classes"
Please Sign up or sign in to vote.
14 Feb 2015
Dan Maroff
A custom ListView class that uses reflection to sort columns based on the DisplayMemberBinding's bound data type
Please Sign up or sign in to vote.
26 Feb 2015
Dmitriy Repin
A trick that allows populating a user control with sample data while you are designing it in the Visual Studio designer
Please Sign up or sign in to vote.
1 Apr 2018
Clifford Nelson
This is a control that is like a Expander Control but there is both Expanded and not Expanded Content. It demonstrates some concepts on how to easily create controls whose functionality can be mostly implemented in the XAML with the code behind being mostly DependencyProperty definitions.
Please Sign up or sign in to vote.
7 Dec 2018
Dirk Bahle
Making better use of the available UI space.
Please Sign up or sign in to vote.
18 Jun 2020
SoundersFan
How to edit templates in VS XAML without the bloat
Please Sign up or sign in to vote.
19 Apr 2010
Mohammad Dayyan
Sometimes we need to show an external image directly in WPF.Assume we have a folder that is named images beside of our main's WPF exe file. There is an image in this folder that's named sample.png.Now with the following XAML code, we can show it in WPF directly:
Please Sign up or sign in to vote.
26 Nov 2010
Mike Fuchs
Introduction The following snippet provides a generic method to walk up the visual tree of Silverlight in order to find an element of a given type. It will return the first found item of said type, or null if the search ends at the visual tree root without any results.  Code // walk up the...
Please Sign up or sign in to vote.
4 Jun 2010
fjparisIII
Cannot use Storyboard because ScrollView.VerticalOffset property is read-only. Must use old fashioned DispatchTimer.
Please Sign up or sign in to vote.
4 Jun 2010
fjparisIII
Cannot use Storyboard because ScrollView.VerticalOffset property is read-only. Must use old fashioned DispatchTimer.
Please Sign up or sign in to vote.
20 Sep 2010
Uros Calakovic
I encountered a problem while trying to use WPF UI Automation with PowerShell - PowerShell reported incorrect type for automation elements
Please Sign up or sign in to vote.
20 Mar 2011
Thomas Willwacher
AutoGrayImage: An image class that changes to grayscale when it becomes disabled.
Please Sign up or sign in to vote.
14 Aug 2011
Saraf Talukder
Please Sign up or sign in to vote.
31 Oct 2011
Måns Tånneryd
How to get WPF ListBox items with the same look-and-feel as items in a WPF ListView.
Please Sign up or sign in to vote.
4 Apr 2012
Adrian Calinciuc
How to make/use a simple RadioList displaying an "n" state value with checkboxes.
Please Sign up or sign in to vote.
15 Jun 2012
#realJSOP
One way to get around the "invalid character" error
Please Sign up or sign in to vote.
30 Sep 2013
N_tro_P
Simplify your MVVM Properties
Please Sign up or sign in to vote.
11 Sep 2013
Niel M.Thomas
A tip to keep your text crisp and clear.
Please Sign up or sign in to vote.
16 Jan 2014
Codes Of Shadows
Header Style Combo Box Drop Down Filter Button
Please Sign up or sign in to vote.
25 Mar 2014
sbarnes
Rewriting and restoring XML files (streams) with two helper classes
Please Sign up or sign in to vote.
12 Apr 2014
_Noctis_
How to use Sublime text editor to help with your VS development
Please Sign up or sign in to vote.
26 May 2014
Tkach Aleksey
WPF Gmail-style emails input control using C#, with email validation
Please Sign up or sign in to vote.
28 Jul 2014
Srinibas Das
Queue a new build using different build definition attributes at runtime. This tip will show you how to queue a new Build with custom parameters using TFS API.
Please Sign up or sign in to vote.
5 Aug 2014
Anis Derbel
The easy way to connect to Mysql using Wamp server on WPF
Please Sign up or sign in to vote.
7 Aug 2014
naren1991
Rendering PXCMImage to Image control in WPF
Please Sign up or sign in to vote.
4 Nov 2014
Diwakar M A
WPF based preloader animation sample. Let's make WPF applications more interactive during long process.
Please Sign up or sign in to vote.
29 May 2015
Dean R Brown
Simplest way to change the ugly default scrollbar appearance in a ScrollViewer
Please Sign up or sign in to vote.
24 Sep 2015
brain2cpu
The way x:Bind is (not) working in universal Windows applications
Please Sign up or sign in to vote.
24 Oct 2015
FurqanSafdar
This tip and trick describes a way to make MahApps.Metro Flyouts work with a modular application sample in Prism Library.
Please Sign up or sign in to vote.
22 Jan 2016
kaviteshsingh
Simple utility to scan and find duplicate files in a directory.
Please Sign up or sign in to vote.
7 Mar 2016
OrlandoCurioso
When GridSplitter stops resizing by mouse, yet operates by keyboard arrows
Please Sign up or sign in to vote.
23 Aug 2016
Max Fedotov
Virtual Keyboard (TabTip) integration in WPF on Win 8.1 and Win 10
Please Sign up or sign in to vote.
28 Oct 2017
webmaster442
How to format your XAML documents for effective version handling & maximum maintainability
Please Sign up or sign in to vote.
21 Dec 2017
Peter Sun (247)
Demonstrate how to create WPF TrewView with multiple levels of HierarchicalDataTemplate from C# code-behind without XAML using MVVM for data binding
Please Sign up or sign in to vote.
24 Aug 2019
Charles Jenkins
In full-row selection mode, the WPF DataGrid wants to scroll horizontally when a user clicks on a cell which extends offscreen. This sample project shows one way to prevent it.
Please Sign up or sign in to vote.
14 Jul 2020
Bloody Chicken
Load XAML, find control, and play Youtube video automatically
Please Sign up or sign in to vote.
1 Mar 2010
fjparisIII
I have an assembly embedded as a resource in my application. I had the need to get the System.Version of that assembly. I figured that should be easy but off the top of my head I didn't know the series of calls needed to accomplish this. So I decided to sit down and walk through the problem....
Please Sign up or sign in to vote.
13 Jan 2011
cechode
I ended up adding one for a Lazy Property: propLazy ...
Please Sign up or sign in to vote.
7 Feb 2011
Fredrik Bornander
This tip corrects my horrible attempt of a Spider Control
Please Sign up or sign in to vote.
28 Feb 2011
Anton Lesnichenko
Add AllowsTransparency="True" and there will not be a border.
Please Sign up or sign in to vote.
7 Jan 2012
Thomas Willwacher
A static resource with a Path property. For example, it can be used to redirect command handling to a resource object.
Please Sign up or sign in to vote.
28 May 2011
Anshul R
For the souls confused about WPF.
Please Sign up or sign in to vote.
10 Aug 2011
Nadege Rouelle
Please Sign up or sign in to vote.
5 Oct 2011
brad.ford@cudl.com
Be aware: expressions take a LOT of time to evaluate (relative to a constant string), and will make writing values to properties slow.I think that the solution is to a problem that has limited risk. What I mean is if you need to rename a property, then the call to the OnPropertyChange is...
Please Sign up or sign in to vote.
9 Oct 2011
Colin3
Using the SAPBusinessObjects.WPF.Viewer.dll, the property ShowGroupTree is not available.To Hide the GroupTree as a default, set the property .ToggleSidePanel to SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None.e.g.With _viewer .IsEnabled = True ...
Please Sign up or sign in to vote.
1 Nov 2011
Zac Bergquist
If you're truly targeting WPF, why not eliminate the dependency on WinForms and use System.Windows.Input.Key instead?
Please Sign up or sign in to vote.
20 Nov 2011
Vasudevan Kannan
Change the visual feed back when dragging a non freezable column in to frozen column or Vice versa
Please Sign up or sign in to vote.
30 Dec 2011
VallarasuS
Custom ICollection View to group items based on two or more properties in same level
Please Sign up or sign in to vote.
28 Mar 2012
Bernhard Hiller
Double and DateTime values bound to textboxes in correct format
Please Sign up or sign in to vote.
25 Jun 2012
MikeLamb1
A listview control with footer.
Please Sign up or sign in to vote.
13 Jul 2012
Opata Chibueze
This tip demonstrates how to wrap text in WPF - similar to using &shy or
Please Sign up or sign in to vote.
10 Mar 2013
xibao
Generate class definition for Web API Service Models.
Please Sign up or sign in to vote.
3 Jun 2013
LarryCharlton
Using system, named, and hex color values
Please Sign up or sign in to vote.
28 Jun 2013
Vladimir Yusim
Presents a library which allows to open and handle dialogs in MVVM manner.
Please Sign up or sign in to vote.
23 Jul 2013
Raman Midha
How to merge datacells in WPF DataGridView.
Please Sign up or sign in to vote.
26 Jul 2013
LarryCharlton
Getting started with customizing the WPF DataForm.
Please Sign up or sign in to vote.
9 Oct 2013
_Noctis_
Quick tip for forms/windows/views where save/insert/cancel buttons are used
Please Sign up or sign in to vote.
21 Nov 2014
ferragus
Change WPF DataGrid Styles in code behind
Please Sign up or sign in to vote.
22 Apr 2015
Amin Esmaeily
In this tip, I will explain how to create a simple user control (AverageMeter) using WPF.
Please Sign up or sign in to vote.
8 Jun 2015
Stiv Ostenberg
Introducing a tool to manage multiple AWS accounts from a PC.
Please Sign up or sign in to vote.
11 Jun 2015
Evgeny Bestfator
Implementation if ICommand is trivial, but it is poor by its nature. We can not get Picture or Text or Disabled properties from usual ICommand implementation. But we can make a trik and have all information about command in a single object and use this information on as many command elements as we w
Please Sign up or sign in to vote.
17 Nov 2015
PyroStrex
Example of loading external scripting and external XAML with VB.NET and NeoLua
Please Sign up or sign in to vote.
4 Jan 2016
Steve 262877418
Different resource paths using in WPF XAML file
Please Sign up or sign in to vote.
24 Jan 2016
Daniel Brousser
Custom TextBox control for UI input validation
Please Sign up or sign in to vote.
8 Feb 2016
StormyDev
Simple and clean-cut label that user can edit text of during run-time (by double-clicking) which I wrote because the examples I found were either obsolete or added clutter to the interface.
Please Sign up or sign in to vote.
19 Jun 2017
David Fine
Using Attached DependencyProperty to prevent closing of Popup embedded in ToggleButton
Please Sign up or sign in to vote.
14 Jan 2018
Matej Pavlů
ActionCommand variant that tracks changes of properties and raises CanExecuteChange event on its own.
Please Sign up or sign in to vote.
18 Feb 2019
Bloody Chicken
This program is designed to upload an XML file and a zip file automatically created to your FTP server. It can be used for software update.
Please Sign up or sign in to vote.
1 Apr 2020
Vassili Kravtchenko-Berejnoi
A generic workaround for auto-generating multiple custom columns in a WPF DataGrid in case where the data class has multiple properties of the same type
Please Sign up or sign in to vote.
16 May 2021
G.TR
This tip shows two different approaches for disposing view models that use Reactive Extension
Please Sign up or sign in to vote.
9 Mar 2010
fjparisIII
How to use GDI+ code in a WPF application for lossless JPEG image rotation
Please Sign up or sign in to vote.
7 Sep 2010
Member 2722225
what about this one :if (new frm().ShowDialog().Equals(true)) { //do something }
Please Sign up or sign in to vote.
13 Nov 2010
venugopalm
Calling thread cannot access this object because a different thread owns it
Please Sign up or sign in to vote.
22 Nov 2010
Morten Nilsen
I also have implemented a MarkupExtension to set the DataContext, which looks like this:[MarkupExtensionReturnType(typeof(ApplicationControllerBase))]public class ApplicationDataContext : MarkupExtension{ private Type dataContextType; public ApplicationDataContext(Type...
Please Sign up or sign in to vote.
30 Nov 2010
MartinW1307
I have for years used the follow to fetch a window to a visible screen.1. Right click the window on the taskbar and select 'Move' (or use the keystrokes Alt-Space, M)2. Move the mouse a bit3. Press "left arrow"4. Move the mouse around - you will see the window outline ;) 5. left click...
Please Sign up or sign in to vote.
6 Dec 2010
Luc Schenkeveld
Alternate 3Right click on the taskbar and use "Show Windows Side by Side"
Please Sign up or sign in to vote.
24 Dec 2010
Ashish Kaila
Illustrates how to dynamically bind to value converters in XAML using normal Binding
Please Sign up or sign in to vote.
11 Jan 2011
Liero_
I promised an alternative, so here is a good starting point:http://www.deanchalk.me.uk/post/Thread-Safe-Dispatcher-Safe-Observable-Collection-for-WPF.aspx It is custom implementation of INotifyCollectionChanged. As a bonus, it is thread-safe. :) For serialization support, you have to...
Please Sign up or sign in to vote.
30 May 2011
Anshul R
Controls will have the Aero Theme (WPF)
Please Sign up or sign in to vote.
8 Jul 2011
Amey1202
In WPF, just set the ToolPanelView property of CrystalReportViewer to None. That is enough.
Please Sign up or sign in to vote.
26 Jul 2011
GATzilla
In WPF, you can use the method UIElement.AddHandler(RoutedEvent, Delegate, Boolean) to specify that the UIElement should receive all events, including those that have been handled. Just subscribe your ListBox to the MouseDown event this way (you might do this in your custom control's...
Please Sign up or sign in to vote.
15 Sep 2011
kribo
Dynamic TabItems
Please Sign up or sign in to vote.
29 Mar 2012
pritam40
Simple but presentable message boxes for Silverlight developers. Designed for ease of integration with existing projects.
Please Sign up or sign in to vote.
26 Apr 2012
David Bekham
Load different version of same assemblies in the wpf application
Please Sign up or sign in to vote.
29 May 2012
db7uk
Region adapters in VB.NET
Please Sign up or sign in to vote.
13 Jun 2012
billxie
Advanced technique to apply animation concurrently on multiple controls.
Please Sign up or sign in to vote.
13 Sep 2012
azweepay
Create a GridViewColumnCollection with resizable and non-resizable columns
Please Sign up or sign in to vote.
26 Oct 2012
Greg Dennis
How to implement a single selection set across as many ItemsControls as your app needs.
Please Sign up or sign in to vote.
26 Oct 2012
Greg Dennis
Another approach to implementing single selection across multiple ItemsControls
Please Sign up or sign in to vote.
18 Jan 2013
Programmer35
WPF Custom Window W/Full Windows Functionality.
Please Sign up or sign in to vote.
25 Jan 2013
Shahare
Settings a TreeViewItem as not selectable.
Please Sign up or sign in to vote.
16 Jan 2013
Houssem_Dellai
Developing the client and server side for a chat application.
Please Sign up or sign in to vote.
22 Feb 2013
oppassum
Basic article to describe how to use Reflection for dynamically loading commands/etc
Please Sign up or sign in to vote.
16 Apr 2013
Louis_Liu
WPF application to capture screen.
Please Sign up or sign in to vote.
17 Jun 2013
Dipti Dutta
KeyDown event handler to restrict numbers to two decimal places.
Please Sign up or sign in to vote.
30 Aug 2013
ntg123
Simple way to pass custom(Attached) properties into a style-based control-template with triggers
Please Sign up or sign in to vote.
10 Oct 2013
Ced743
Imbricated ItemsControl (a list into another list) to make a table
Please Sign up or sign in to vote.
14 May 2014
Markus Wallner-Novak
Short example of highlighting a grid row on textbox got focus
Please Sign up or sign in to vote.
15 Jun 2014
JO Hyeong-Ryeol
An introduction to the WatchableObject that is a base class to implement the INotifyPropertyChanged interface.
Please Sign up or sign in to vote.
3 Jan 2015
Emiliano Musso
How to save DataGrid column's properties for further re-use
Please Sign up or sign in to vote.
13 Jan 2015
K K Srinivasan
This tip is to give simple idea about changing the visibility of Grid's Row.
Please Sign up or sign in to vote.
30 Mar 2015
lally727
Running multiple animations in one WPF XAML
Please Sign up or sign in to vote.
11 Apr 2015
Bruce Greene
A helper class for tabs-style navigation in WPF, and an example of how to animate the Opacity property.
Please Sign up or sign in to vote.
19 May 2015
Bhanu Pratap Singh Rathore
Animate Controls with ease using the MAnimation class developed by myself and can be used by anyone.
Please Sign up or sign in to vote.
11 Jun 2015
Lance Contreras
Create an easily resusable IconBlock (TextBlock that display's an icon)
Please Sign up or sign in to vote.
1 Jul 2015
1sumitanand
Sorting of simple ListView Elements in Ascending/Descending Order
Please Sign up or sign in to vote.
11 Jul 2015
ergohack
This SQLite Data Object Window base class automates the data updates and the data bindings between the XAML presentation and the SQLite database allowing the minimum of code needed to present and edit SQLite database records.
Please Sign up or sign in to vote.
19 Jul 2015
Ajcek84
Overview of music notation library
Please Sign up or sign in to vote.
19 Jul 2015
KADJINA Toyi
This sample is about hiding automatically datagrid columns when all rows of this column are empty.NB: The following code is for silerlight 5 and can be readapt for WPF
Please Sign up or sign in to vote.
19 Jan 2017
PureNsanity
A value converter that allows smart rounding for text display
Please Sign up or sign in to vote.
18 Nov 2017
Herbert Lausmann
Convert between over 100 different currencies in .NET using Yahoo's APIs
Please Sign up or sign in to vote.
13 Nov 2018
Vlad Neculai Vizitiu
How to generate breakpoints
Please Sign up or sign in to vote.
4 Jul 2020
MarkWardell
An aid to Port WPF Framework Applications to .NET Core 3.1
Please Sign up or sign in to vote.
10 Dec 2016
Cory Charlton
A thread-safe implementation of the ObservableCollection class
Please Sign up or sign in to vote.
6 May 2012
Shahin Khorshidnia
Tag is a useful property, but when you need more than a Tag, what will you plan for it?
Please Sign up or sign in to vote.
4 Dec 2013
Balachandar Jeganathan
Custom attached property in WPF
Please Sign up or sign in to vote.
25 Oct 2013
Erxin
Introduce a simple way to embed an EXE into a WPF window application.
Please Sign up or sign in to vote.
28 Feb 2017
James J M
How to apply spacing to all children in a panel
Please Sign up or sign in to vote.
7 Nov 2013
Lance Contreras
How to add columns to a DataGrid through binding and map its cell values
Please Sign up or sign in to vote.
13 Jun 2013
Sagar Sumant
Caller Info attributes in C# 5.0 and their usage
Please Sign up or sign in to vote.
7 Mar 2012
Hiren Khirsaria
How to give a strong name to your assembly
Please Sign up or sign in to vote.
28 Jul 2014
Bhardwaj Deepak
An advanced and fully featured WPF AutoComplete TextBox control
Please Sign up or sign in to vote.
6 Nov 2012
Jaime Olivares
How to change the popup zone of a WPF Combobox programmatically without restyling
Please Sign up or sign in to vote.
22 May 2010
#realJSOP
In WPF/Silverlight, you might want to bind to a dictionary. Here's a couple of websites I found.
Please Sign up or sign in to vote.
22 Jan 2013
Matthew Searles
Use an Attached Property to execute an ICommand.
Please Sign up or sign in to vote.
25 Nov 2013
dietmar paul schoder
How to produce a dynamic lined or squared background on a canvas/grid
Please Sign up or sign in to vote.
29 Jul 2013
Pete O'Hanlon
Switching data templates entirely in XAML.
Please Sign up or sign in to vote.
3 Nov 2017
Clifford Nelson
This tip shows how easy it is to create a Style with DependencyProperty definitions and avoid the much heavier UserControl
Please Sign up or sign in to vote.
15 Nov 2013
Francisco T. Chavez
Bool to content converter
Please Sign up or sign in to vote.
3 May 2014
Bruce Greene
A bare-bones Find and Replace tool for AvalonEdit
Please Sign up or sign in to vote.
5 Oct 2016
Clifford Nelson
Presents and implementation of a control that can be pressed to bring up a Menu.
Please Sign up or sign in to vote.
9 Jun 2013
Evgeny Bestfator
How to use WPF Styles in other assemblies, or other project types, like WinForms
Please Sign up or sign in to vote.
20 Dec 2013
Subodh Raikar
Accessing SSRS Reports from SharePoint Site using C#
Please Sign up or sign in to vote.
11 Aug 2014
Volodymyr Trubachov
Describes the approach to bind a group of radio buttons to a single property, regardless of the property type (enum, bool, int, string).
Please Sign up or sign in to vote.
5 Mar 2015
MatthewThomas
Adding a watermark to a WPF TextBox by only using XAML. No extensions. No Converters.
Please Sign up or sign in to vote.
17 Oct 2012
Johnny J.
Workaround for a bug concerning focus of child controls inside WPF UserControl
Please Sign up or sign in to vote.
6 Jan 2015
MarkLTX
Allow users to "magnify" your WPF application!
Please Sign up or sign in to vote.
29 Jun 2016
Clifford Nelson
This class based on the ObservableCollection supports updating instead of replacing
Please Sign up or sign in to vote.
11 Aug 2014
Little Carl
This article gives you a choice on using the vector icons (such as the icons from icomoon.io,etc) in WPF without other class library
Please Sign up or sign in to vote.
6 Dec 2013
dietmar paul schoder
RibbonComboBox in MVVM/WPF: the easiest way
Please Sign up or sign in to vote.
24 Dec 2013
Senthilvel Samatharman
This tip provides a simple implementation for the ICommand interface and enables to write quick code leaving the nuances of fetching the return types and asynchrony
Please Sign up or sign in to vote.
13 Jan 2011
Mahmudul Haque Azad
1 alternative  
Shortcut to generate different property snippets in Visual Studio
Please Sign up or sign in to vote.
12 Aug 2013
Robert Köpferl
Automatic scrolling while drag&drop operation in WPF. For this article the functionality is realized as an Attached Property.
Please Sign up or sign in to vote.
7 May 2013
Jawahar Suresh Babu
This tip gives a simple way to bind enum values into a ComboBox that could be reused in different applications.
Please Sign up or sign in to vote.
14 Dec 2013
Shweta Lodha
How to format strings in binding
Please Sign up or sign in to vote.
20 Mar 2013
CodeHawkz
Often we try to synchronize scrolling, but WPF does not have a direct support for this one. Therefore, this article is on that.
Please Sign up or sign in to vote.
5 Feb 2015
Stephan Ehret
Create YouTrack issues from Outlook and manage your issues from Microsoft Project
Please Sign up or sign in to vote.
16 Dec 2014
RumataEstorish
Snowfall animation in WPF application. Bring some winter to your application!
Please Sign up or sign in to vote.
25 May 2014
Andrew Lai
WPF performance comparison in 3 ways of refreshing data
Please Sign up or sign in to vote.
12 Aug 2011
Andrew Rissing
Using an attached behavior to expose the value of a DataContext for Automation
Please Sign up or sign in to vote.
9 Nov 2012
#realJSOP
Stuck on a really weird problem in WPF? Move your behind and write some code (behind).
Please Sign up or sign in to vote.
13 Nov 2011
kvreddy
Microsoft WPF vs. Silverlight, a comparision