Click here to Skip to main content
15,891,629 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 vickyqu115
A comprehensive guide on identifying issues with the standard WPF DatePicker, exploring its design and interaction intricacies, and introducing a new implementation using a CustomControl named SmartDate.
by Jo_vb.net
An overview how to use RowDetails, Grouping and Filter for a DataGrid.
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

All Articles

Sort by Updated

WPF 

N 3 May 2024 by Jo_vb.net
An overview how to use RowDetails, Grouping and Filter for a DataGrid.
21 Feb 2024 by Jo_vb.net
Part 2 of my article about 'Schafkopf' introduces Automated Bidding
16 Feb 2024 by Peter Sun (247)
Implement ChatGPT API in C# WPF with GPT3.5-turbo
23 Oct 2023 by Jo_vb.net
How to get started using the MVVM Toolkit
31 Aug 2023 by Sergey Alexandrovich Kryukov
Improvements used to fix an annoying WPF MenuItem defect related to icons
9 Feb 2023 by Stanko Milošev
How to either migrate to the new XAML designer extensibility or write WPF custom control extensibility model based on .designtools.dll.
18 Jun 2022 by Peter Sun (247)
Create a C# WPF app to read Twitter tweets and retweets via REST API with grouping related users / friends by categories. As a bonus, tweets can be saved in Azure / Cloud, and viewed in an Azure website.
28 Feb 2022 by Saurabh Singh _
A simple approach to handle Airspace problem
11 Jan 2022 by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
1 Nov 2021 by Ilija Poznić
Adding class selector to WPF
13 Oct 2021 by Pusparag Subudhi
A WPF application can be made more interactive and deployment friendly by using SignalR to our advantage. This is Part 1 showing how SignalR can be implemented in a WPF application for two-way communication and synchronization.
16 May 2021 by G.TR
This tip shows two different approaches for disposing view models that use Reactive Extension
11 Apr 2021 by Jqkunz
WPF Datagrid with a footer that you can aggregate, align, and use string formats on
5 Apr 2021 by Wendelius
When a string longer that 65536 is shown using a message box, the result might be unexpected.
6 Mar 2021 by Avirup Das
This tip describes an application to control with Sony TVs connected to your Home Wi-Fi network from PC.
1 Mar 2021 by Bloody Chicken
Find controls by XY Positions to solve a problem issuing in Touch Events in WPF
27 Feb 2021 by #realJSOP
How to close modeless windows if you don't close them before the main window closes
14 Feb 2021 by Kenneth Haugland
Useful extension method for ViewModelFirst
16 Nov 2020 by Erik Nagel
Usable demo demonstrating some aspects of application architecture
27 Sep 2020 by Pusparag Subudhi
WPF Authentication framework with credential manager
15 Aug 2020 by Clifford Nelson
A media player application specifically designed to support listening to language learning tracks
7 Aug 2020 by Jeff East
Implements automatic column width sizing based on item contents for ListViews using GridView
14 Jul 2020 by Bloody Chicken
Load XAML, find control, and play Youtube video automatically
4 Jul 2020 by MarkWardell
An aid to Port WPF Framework Applications to .NET Core 3.1
26 Apr 2020 by Omnia Hussain
A walk-through for creating a custom WPF button that contains both icon and text
13 Apr 2020 by DenisovJr.
Easy method in WPF to make an interactive file browser
1 Apr 2020 by 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
27 Jan 2020 by Vassili Kravtchenko-Berejnoi
Use of System.WeakReference for self-cleanable registration of (short-life) objects
24 Aug 2019 by 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.
31 Jul 2019 by #realJSOP
Make data exchange in MVVM easy on yourself
27 Apr 2019 by OriginalGriff
This is an alternative for "List Only Files Created or Modified Yesterday in C#"
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.
18 Feb 2019 by 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.
7 Dec 2018 by Dirk Bahle
Making better use of the available UI space.
13 Nov 2018 by Vlad Neculai Vizitiu
How to generate breakpoints
30 Oct 2018 by Carsten Breum
Data Virtualization example with a pagesize and async data request
6 Jul 2018 by Daniel Ziegelmiller
How to track changes in the ObservableCollection displayed in a WPF DataGrid
5 Jul 2018 by Peter Sun (247)
Master-detail view navigation using manageable data-driven and code-behind techniques
25 Jun 2018 by Clifford Nelson
A way to create a custom derived control with the XAML file attached like a UserControl
20 Jun 2018 by Clifford Nelson
This behavior will select the entire text when a TextBox or PasswordBox gains focus
26 May 2018 by Vladan.Obradovic
How to easily write a user's guide for your application using different file extensions
2 May 2018 by Clifford Nelson
The tip provides a behavior that will set a control to a default value when the Visibility changes
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.
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.
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
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.
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.
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.
1 Apr 2018 by 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.
19 Mar 2018 by Clifford Nelson
A alternative ToggleButton/RadioButton control
9 Mar 2018 by Eric Ouellet
Demonstrate that human perception is not really able to show the difference between 2 colors when there is only one bit change on a RBG monitor with 8 bit color per channel.
4 Mar 2018 by Clifford Nelson
Provides a way to have a string in XAML that can contain string values and references to resources that are inserting into the string like string interpolation
3 Mar 2018 by Clifford Nelson
This tip presents a way to use the ContentControl and DataTemplate to easily control an image in a Window.
9 Feb 2018 by Meshack Musundi
How to highlight TextBlock text using attached properties
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.
14 Jan 2018 by Matej Pavlů
ActionCommand variant that tracks changes of properties and raises CanExecuteChange event on its own.
29 Dec 2017 by wim4you
Show UniformGrid and scroll through a few thousand images, UI virtualization
27 Dec 2017 by Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
27 Dec 2017 by Bhanu Pratap Singh Rathore
This tip contains easy steps to extract XML data from URLs in VB.NET
21 Dec 2017 by 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
8 Dec 2017 by Jalapeno Bob
Grouping and sorting in a WinForm listview fails in a WPF application unless Visual Styles are enabled.
18 Nov 2017 by Herbert Lausmann
Convert between over 100 different currencies in .NET using Yahoo's APIs
13 Nov 2017 by Herbert Lausmann
Icon Pro - A C# + WPF open source tool for creating windows icons from PNG images or SVG vectors
11 Nov 2017 by Herbert Lausmann
An IconBitmapEncoder that produces high-quality icons, written in VB.NET and C#, WPF
3 Nov 2017 by Clifford Nelson
This tip shows how easy it is to create a Style with DependencyProperty definitions and avoid the much heavier UserControl
28 Oct 2017 by webmaster442
How to format your XAML documents for effective version handling & maximum maintainability
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.
14 Oct 2017 by Mr.PoorEnglish
This is an alternative for "SelectedItems Behavior for ListBox and MultiSelector"
12 Oct 2017 by Clifford Nelson
A Behavior is presented that will ensure that only one Checkbox will be checked within the visual tree of the control to which this behavior is attached
11 Oct 2017 by Clifford Nelson
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
26 Sep 2017 by Clifford Nelson
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
14 Sep 2017 by Leif Simon Goodwin
I present a short introduction to resource dictionaries with examples.
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
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.
11 Aug 2017 by Clifford Nelson
Sometimes want to have some action in a View when there are no items or are items in a collection. It is very easy to do this with a converter and binding to the Collection's Count property
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.
25 Jul 2017 by ShantanuKulkarni3
Introduction to WPF DrawingContext api
6 Jul 2017 by Alexander Sharykin
No more Template copies
19 Jun 2017 by David Fine
Using Attached DependencyProperty to prevent closing of Popup embedded in ToggleButton
18 Jun 2017 by wim4you
DeskTopCircles, hands-on experiment to Organise/Launch a larger number of items in a tabbed circular 2D canvas. Resize thumbs when dragging.
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.
23 May 2017 by Juan Francisco Morales Larios
Faster and easy way for generated ViewModel class
12 Apr 2017 by Dave “DWC” Curry
How to wire up drag+drop events through multiple objects.
10 Apr 2017 by Swapnil Dhage
This is a helper/utility class that will add a layer of abstraction as well as separation for dispatcher related operations in WPF.
6 Apr 2017 by Sergey Alexandrovich Kryukov
Focused TextBox blocks Undo/Redo invocation of other components, but the problem can be solved comprehensively
14 Mar 2017 by Nomesh G
Adding Validation to controls in WPF
2 Mar 2017 by Nomesh G
Setting up basic MVVM in WPF and ICommand usage to allow operations on ViewModel from view.
7 Feb 2017 by shahidul.haq
A WPF custom control for grouping data similar to build-in expander
7 Feb 2017 by Clifford Nelson
This tip presents a control that is derived from the ItemsControl that uses a UniformGrid to display.
19 Jan 2017 by PureNsanity
A value converter that allows smart rounding for text display
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.
10 Dec 2016 by Cory Charlton
A thread-safe implementation of the ObservableCollection class
14 Nov 2016 by Bruce Greene
A WPF custom TextBox for editing numbers that features a context menu for math operations
10 Nov 2016 by Matthew Givens
This tip shows how to remove the close window from a WPF ToolWindow, so that exiting the window can be tightly controlled.
10 Oct 2016 by Clifford Nelson
This article presents a behavior that can be used to attach properties to a bound class.
5 Oct 2016 by Clifford Nelson
Presents and implementation of a control that can be pressed to bring up a Menu.
23 Aug 2016 by Max Fedotov
Virtual Keyboard (TabTip) integration in WPF on Win 8.1 and Win 10
6 Aug 2016 by Clifford Nelson
This tip presents a way to have disabled items in your ComboBox
3 Aug 2016 by turanian
Making a TextBoxClass allows only numeric data
24 Jul 2016 by tpatel1
Basic implementation of background worker implementation