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.


  • Microsoft Open Sources WPF and Windows Forms

    WPF and Windows Forms are open source now and available on Github as a part of .NET Core ecosystem.
  • Future of WPF

    What is the future of WPF? Watch the following video in which two Visual Studio program managers at Microsoft, Unni and Hari, talk about the future of WPF, XAML, Blend and much more.
  • Working With WPF Grid Panel

    The Grid class in WPF represents a grid panel. Grid panel can also be created at design-time using XAML <Grid> element. The code examples in this article, you will learn how to use a WPF Grid Pa
  • WPF DatePicker Using C#

    A DatePicker control is used to create a visual DatePicker that let user to pick a date and fire an event on the selection of the date. The DatePicker class in C# and <DatePicker> element in XAM
  • Grid Layout in WPF

    WPF Grid panel enables you to arrange children elements in cells defined by rows and columns. In the code example of this article, we will learn Grid layout and its properties in WPF using C# and XAML
  • Explain Combo Box Binding In MVVM - WPF

    In this article, you will learn how to explain combo box binding in MVVM - WPF. INotifyPropertyChanged, ICommand interface
  • WPF ComboBox

    The ComboBox class in C# represents a WPF combo box control. This tutorial demonstrates how to create and work with a ComboBox control in WPF using XAML and C#.
  • Working with WPF Calendar

    The Calendar class in WPF represents Windows calendar control that allows users to pick a date or date range from a monthly view. The Calendar element in XAML can be used to create a calendar at desig
  • WPF CheckBox

    The CheckBox class in C# represents a WPF Check Box control. The <CheckBox> element in XAML can be used to create a CheckBox at design time. The code examples in this tutorial demonstrate how to
  • Button Control In WPF

    The Button class and XAML Button element represent a WPF Button control that is used to execute code on the button click event. Code examples in this article covers how to use Button, add a button cli
  • WPF Border Tutorial

    The Border class in C# represents a border control in WPF. XAML Border element is the border representation in UI. Learn how to create borders around WPF controls using XAML and C#.
  • WPF Slider Control

    The Slider class in WPF represents the slider control in C#. The code example in this article creates a complete slider control functionality using XAML and C#.
  • WPF Interview Questions And Answers

    In this article you will learn about the most asked WPF Interview questions and answers.
  • Transferring data from one ListBox to another in WPF

    This article discusses how we can transfer items from one ListBox to another in WPF.
  • WPF TextBlock

    A TextBlock control in WPF provides a lightweight control for displaying small amounts of flow content. This tutorial and code examples demonstrates how to use a WPF TextBlock control in a WPF app and
  • Overview Of Styles In WPF

    In my ‘Overview of Resources in WPF’ article I talked about Resources and how they are useful. But there is one drawback with ‘Resources’ in WPF. Resource collection of each element contains individua
  • WPF Toolbar Tutorial

    The <Toolbar> element in XAML and the Toolbar class in WPF represent a Toolbar control. This tutorial consists of several code examples of how to create a Toolbar and add buttons to a toolbar co
  • GridView In WPF

    A GridView control provides interactive Grid functionality. WPF does not provide a GridView control. However, WPF ListView supports a GridView mode. The code sample in this tutorial demonstrates how t
  • Overview Of Composite Collection In WPF

    Recently in our project, which is based on WPF framework, we wanted to use ItemsControl to list out different types of objects. I couldn’t use general List, ObservableCollection or any other type of c
  • Overview Of WPF Resources

    Resources in WPF are set of objects like Brushes, Templates, styles etc. which are stored in Dictionary and referenced by unique strings. Usually they are declared once and used throughout the applica
  • Validations in WPF

    Validating dynamically in WPF using patterns like MVVM.
  • WPF DataGrid Style

    The DataGrid control provides a flexible way to display a collection of data in rows and columns. The DataGrid includes built-in column types and a template column for hosting custom content. The buil
  • WPF Drawing Brush

    The Drawing object in WPF represents a 2-D drawing that include shapes, text, video, image and other drawings. A Drawing Brush represented by the DrawingBrush object paints a surface with a drawing.
  • Mastering WPF DataGrid in a Day: Hour 1 Introduction

    This article, an introduction to the WPF DataGrid, is the first article of a series.
  • DataGrid in WPF

    This article is a part 1 of my WPF DataGrid series. In this part, you will learn how to use a DataGrid control, set its properties, and display data from a collection.