Welcome to Windows Presentation Foundation (WPF) section of C# Corner. In this section, you will find articles, source code samples, tutorials, tips, resources, downloads, and news related to Windows Presentation Foundation in .NET 3.0.


  • ToolTip in WPF

    The ToolTip element in XAML adds a tooltip to a WPF control. The ToolTip class represents a tooltip in C#. The ToolTip property of a control represents the tool tip of the control. Code examples in this this article show how to attach Tooltips to WPF controls using C# and XAML.
  • ListBox In WPF

    WPF ListBox class represents a ListBox control that is a collection of ListBoxItems. The <ListBox> XAML represents the UI of a ListBox. This tutorial and code examples are the various use cases of ListBox control in WPF and C#, such as ListBox Formatting, ListBox Style, Images in ListBox, CheckBox in ListBox, and Data Binding in ListBox.
  • DockPanel In WPF

    In this article, you will learn how to use a WPF DockPanel using XAML and C#. A DockPanel is used to dock child elements in the left, right, top, and bottom positions of the relative elements.
  • MVVM in WPF

    In this article, I'll review some of those best practices for designing and implementing client applications with WPF. By leveraging some core features of WPF in conjunction with the Model-View-ViewModel (MVVM) design pattern.
  • WPF WrapPanel Tutorial

    WPF WrapPanel control is a panel that positions child elements in sequential position from left to right by default. The WrapPanel element in XAML and the WrapPanel class in C# represent a WrapPanel WPF control.
  • Transparent Brushes in WPF

    All elements in XAML including all brushes have an Opacity attribute that defines the transparency of an element. This article demonstrates how to use Opacity to implement transparent brushes in WPF using XAML.
  • WPF TextBox

    WPF TextBox control represent a control that can be used to display or edit unformatted text. The TextBox class in C# represents the control. The XAML <TextBox> element represents the TextBox control in UI. The code samples in this article show how to use XAML TextBox element to create a TextBox control in WPF and C#.
  • Shaped Windows In WPF

    Every user interface in WPF is represented by a Window. In this article, you will learn how to create non-rectangular shaped Windows in WPF using C#.
  • WPF - Routed Events

    WPF - Routed Events. RoutedEvents have three main routing strategies which are as follows, Direct Event, Bubbling Event, and Tunnel Event. Basically a CLR event that is supported by an instance of the Routed Event class.
  • Populating Hierarchical Data In TreeView In WPF Using MVVM

    In this article, we will learn how to populate hierarchical data in TreeView in WPF using MVVM architecture.
  • Learn WPF Using Google Place API

    In this article, we will learn WPF, using Google Place API with WPF control web browser in Visual Studio 2015.
  • Working with Button Control in WPF

    This article demonstrates how to create and use a Button control in WPF using XAML and C#.
  • Working With WPF TreeView

    The TreeView control in WPF can be used to display hierarchical data in a parent and children form. The TreeView class in C# and the <TreeView> XAML element are used to create a WPF TreeView. The code examples in this tutorial demonstrate how to create WPF TreeView UI application using XAML and C#.
  • Creating a WPF Application Using Prism

    This article explains an illustration of creating a windows application in WPF using Prism Lybrary. The solution includes recommended practices and techniques and is the basis for the procedures in Prism
  • WPF Layout: WrapPanel

    This article focuses on the WrapPanel in details. WrapPanel is similar to StackPanel but it has an additional feature. The WrapPanel element in XAML represents a WrapPanel.
  • Load an XML File Into a WPF DataGrid

    How to Load an XML File into a WPF DataGrid. The ReadXml method reads an XML file and loads it into a DataSet.
  • Introduction To WPF Expander Control

    Here we discuss how to use an Expander Control in WPF and how we create this control in JavaScript. First we look at JavaScript.
  • An Overview Of Expander Control In WPF

    The Expander control is like a GroupBox but with the additional feature to collapse and expand its content.
  • Using WPF RichTextBox using C# and XAML

    The RichTextBox class in C# represents a WPF Rich TextBox. This tutorial shows you how to create and use a RichTextBox control using C# and XAML. How to select and replace text from WPF RichTextBox. How to change background color and foreground color of text in a RichTextBox. How to load a text file in a RichTextBox control. Spelling check in a RichTextBox.
  • Working with a WPF RepeatButton using C# and XAML

    The RepeatButton class in C# represents a WPF Repeat Button control. The code example in this article demonstrates how to create and use a RepeatButton control in WPF using XAML and C#.
  • View More