Click here to Skip to main content
15,617,231 members
Everything / Desktop Programming / XAML



Great Reads

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 Alan Beasley
Explanation and examples of Additional Templates and Generated Content of a ListBox. Covering Layout, Transitions, and Animation.
by Dr. WPF
This article describes a new approach by which an element can remove its visual and logical relationships to its children while maintaining a conceptual parental relationship with those children.
by Nick Polyak
This article explains the most important and basic concepts of Avalonia WPF-like multiplatform UI package.

Latest Articles

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.
by Alexey A. Popov 2
A simple implementation of Miller columns (cascading columns) control
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.
by Peter Huber SG
WpfTestbench helps you to write sophisticated test windows for your WPF controls with few lines of code

All Articles

Sort by Score


27 Dec 2017 by Alberto M.
How to control TP-Link Smart Plug (HS100 or HS110) with C#
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.
12 Aug 2013 by Le Sourcier
This tip helps in using font icons as ImageSource.
20 Oct 2015 by Manish Dubeyy
How to debug the design time errors in WPF XAML file?
11 Jan 2016 by hesido
A super simple method for listing Enum members in WPF using databinding
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.
6 Jun 2012 by Clifford Nelson
A little trick that will more completely fill the DatePicker background from the code-behind.
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
31 Jan 2015 by Mayur Shah
Markup Extension that allows you to declare Generic classes in Xaml
1 Dec 2015 by Umer Qureshi
How to create a Custom Control so it can be used later and how to give access to some of it properties
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
22 Feb 2011 by İlkay İlknur
Silverlight Focusing Issue
9 Jul 2012 by Christian Amado
In this tutorial, we will discuss on ProgressBar & Background worker. Follow the step-by-step tutorial to know how to use these clases.
2 Apr 2014 by Houssem_Dellai
We'll see how SystemTray properties can help you design nifty apps
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.
1 Dec 2015 by Umer Qureshi
Explains how to navigate among pages with button clicks
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
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.
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.
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
29 Dec 2017 by wim4you
Show UniformGrid and scroll through a few thousand images, UI virtualization
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.
1 Mar 2013 by Yasser Moradi DNP
Parse CanExecute to detect when CanExecuteChanged should be called.
28 Jan 2014 by Borja Prado
How to convert slider thumb tooltip value
17 Jun 2014 by cjb110
A String To Brush Converter for WPF/Silverlight
26 Sep 2015 by Piyush Manharlal
Using integer instead of Enum for ComboBox and Radio Button in XAML
17 Dec 2015 by Umer Qureshi
A tip explaining the difference between Stackpanel and a Grid layout in WPF
19 Dec 2015 by Clifford Nelson
It is not straight forward to change the row selected and hover colors on the Telerik RadGridView. This is a ControlTemplate that works, and works with the detail pane.
28 Feb 2016 by adityasahver
In this article, we will learn how to create an Tile/Page in the MS Band and trigger the details on the associated device
13 Mar 2018 by Slim Hammami
This is a tutorial which contains the finger print authentication using Xamarin Forms
2 May 2018 by Clifford Nelson
The tip provides a behavior that will set a control to a default value when the Visibility changes
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
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.
25 Mar 2018 by Matej Pavlů
Creating a replacement for missing TileBrush known from WPF.
1 Aug 2014 by MichaelLPerry
A behavior to attach to a ListBox to keep WPF from clearing the selected item
6 Jan 2015 by Saad_Mahmood
Unleashing Path List Box using Expression Blend
6 Feb 2015 by Richard Deeming
This is an alternative for "Markup Extension for Generic classes"
14 Feb 2015 by Dan Maroff
A custom ListView class that uses reflection to sort columns based on the DisplayMemberBinding's bound data type
26 Mar 2016 by Sumit Samediya
Here we will learn how to remove default background color of ListBox item on selection in Windows Universal App
25 Aug 2017 by Cédric Bourgeois
How to make it easier to manage StyleSelector and TemplateSelector with AvalonDock, especially when the selection is based on the ViewModel type only.
27 Sep 2018 by Georgeutc
A very simple Resizable SplitView
7 Dec 2018 by Dirk Bahle
Making better use of the available UI space.
24 Jan 2019 by Harshit Gindra
This article with help monetize your Xamarin Forms app using Google Admob. This article shares different implementations for Xamarin.iOS and Xamarin.Android.
18 Jun 2020 by SoundersFan
How to edit templates in VS XAML without the bloat
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.
19 Apr 2010 by 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:
29 Jul 2011 by gsvolt
Draing a two-color line in Silverlight.
8 Sep 2011 by Ian Landicho
A simple combo box that will have predefined items but the selected value bound to a property from our View Model.
30 Sep 2013 by N_tro_P
Simplify your MVVM Properties
20 Feb 2013 by Pradeep Reddy S
Implementation of Accelerometer in WP8 applications.
18 Apr 2013 by Yvan Rodrigues
A simple but effective way for format bound data in XAML with the Windows Runtime
30 Apr 2013 by Farhan Ghumra
Encypt and decrypt StorageFile in Windows Store apps.
5 Aug 2014 by Anis Derbel
The easy way to connect to Mysql using Wamp server on WPF
12 Nov 2014 by Shah Ankita
This code sample demonstrates how to set color to any control using colorpicker. For this, you have to create a new Windows phone app.
24 Sep 2015 by brain2cpu
The way x:Bind is (not) working in universal Windows applications
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
25 Mar 2018 by Matej Pavlů
Creating a replacement for missing TileBrush known from WPF
28 Feb 2011 by Anton Lesnichenko
Add AllowsTransparency="True" and there will not be a border.
13 Jul 2012 by Opata Chibueze
This tip demonstrates how to wrap text in WPF - similar to using &shy or
5 Aug 2014 by Anis Derbel
you can now crop Image with specified size equally
5 Aug 2014 by Anis Derbel
Link between Accelerometer and composant in xaml
22 Aug 2014 by Mdimagh Firas
This tip/trick shows you how to add bindable AppBar with MVVM Light Toolkit in Windows Phone 8
26 Jan 2015 by Divikiran
Exception has been thrown by the target of an invocation using Visual Studio and TFS
13 Oct 2015 by Azim Zahir
This tip explains how you can create animated gradients in a Windows store app using DispatcherTimer.
17 Nov 2015 by PyroStrex
Example of loading external scripting and external XAML with VB.NET and NeoLua
4 Jan 2016 by Steve 262877418
Different resource paths using in WPF XAML file
8 Feb 2016 by 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.
27 Feb 2016 by Gregory Morse
Deriving VirtualizingPanel and OrientedVirtualizingPanel is not possible in WinRT but using some calculation strategies, an efficient emulation is possible
8 Jan 2017 by Nuwan Karunarathna
This a foldable content control for UWP platform.
11 Jan 2019 by Harshit Gindra
Check and request for Permissions in Xamarin Forms mobile application
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
30 Apr 2010 by umangsain
Thanks for providing the coding, i am also searching for the same content and now i need not to search any authorized dealers
28 Apr 2011 by CDP1802
Serializing and deserializing objects with XamlServices class
29 Mar 2012 by pritam40
Simple but presentable message boxes for Silverlight developers. Designed for ease of integration with existing projects.
24 Oct 2012 by Ramanujam Shankar
Show data in grid view control of Windows Stores App using web service or WCF
19 Mar 2013 by VitusD
Avoid unwanted margin in disabled TextBox.
16 Jan 2013 by Houssem_Dellai
Developing the client and server side for a chat application.
14 Feb 2013 by Fredrik Zetterlund
BitmapImageExtension with NetworkCredentials.
6 Aug 2013 by Ced743
DataGrid column separator
30 Aug 2013 by ntg123
Simple way to pass custom(Attached) properties into a style-based control-template with triggers
10 Oct 2013 by Ced743
Imbricated ItemsControl (a list into another list) to make a table
21 Dec 2014 by Divesh P
This tip explains how to create LongListSelector with grouping in very simple and easy steps.
30 Mar 2015 by lally727
Running multiple animations in one WPF XAML
11 Jun 2015 by Lance Contreras
Create an easily resusable IconBlock (TextBlock that display's an icon)
1 Jul 2015 by 1sumitanand
Sorting of simple ListView Elements in Ascending/Descending Order
11 Jul 2015 by 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.