C# Corner

  About WPF

Windows Presentation Foundation ( WPF) is Microsoft's next generation UI (User Interference) framework is used for create applications with a rich user experience. WPF is part of the .NET framework 3.0 and higher its versions. WPF combined with application UIs, 2D graphics, 3D graphics, documents and multimedia into one single framework which are more reliable or using in designing in web applications . WPF vector based rendering engine uses hardware acceleration of modern graphic cards. The main working of WPF to makes the UI more faster, scalable and resolution independent over previous designing technologies .

Related resources for WPF
  • WPF - Routed Events1/18/2019 3:13:54 AM. 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
  • Populating Hierarchical Data In TreeView In WPF Using MVVM1/15/2019 11:36:22 PM. In this article, we will learn how to populate hierarchical data in TreeView in WPF using MVVM architecture.
  • Learn WPF Using Google Place API1/14/2019 3:33:13 AM. 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 WPF1/8/2019 11:24:49 PM. This article demonstrates how to create and use a Button control in WPF using XAML and C#.
  • Working With WPF TreeView1/6/2019 11:16:01 PM. 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. Th
  • Creating a WPF Application Using Prism1/2/2019 1:00:45 AM. 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 P
  • Your first animations using XAML and Silverlight- Double animation: Part II12/26/2018 12:14:35 AM. In the previous article Your first animations using xaml and silverlight - Color animation: Part I, we've exposed a technique of how to deal with color animation. In this article, I will do same t
  • WPF Layout: WrapPanel12/21/2018 12:04:06 AM. 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.
  • Transparent Background of a Control in WPF12/20/2018 11:59:21 PM. How to create a transparent control in WPF. WPF control's background can be transparent by setting the Background property to null.
  • Load an XML File Into a WPF DataGrid12/20/2018 4:03:28 AM. 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 Control12/17/2018 2:27:03 AM. 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 WPF12/17/2018 2:25:36 AM. The Expander control is like a GroupBox but with the additional feature to collapse and expand its content.
  • Implementing Scrolling in Windows using WPF ScrollViewer in C# and XAML12/15/2018 7:29:46 PM. The ScrollViewer class in C# and .NET represents a WPF ScrollViewer control at run-time. At design-time, the <ScrollViewer> element in XAML represents a ScrollViewer control. The code examples i
  • Working With A ScrollViewer Control In A WPF Application12/11/2018 10:19:52 PM. The ScrollViewer is an object that represents a scrollable area that contains other visible controls, it could be found within the System.Windows.Controls. At the contrast of a ScrollBar object, the
  • Using WPF RichTextBox using C# and XAML12/10/2018 7:27:45 AM. 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. H
  • XAML RichTextBox Code Example12/10/2018 7:21:41 AM. The <RichTextBox> element in XAML represents a RichTextBox Windows control. The code example in this tutorial shows you how to use a RichTextBox control available in WPF.
  • Working with a WPF RepeatButton using C# and XAML12/10/2018 7:11:01 AM. 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#.
  • Working with WPF RadioButton using C# and XAML12/9/2018 10:59:21 PM. The RadioButton class in WPF represents a Radio Button control. The code example in this tutorial shows how to create and use a RadioButton control available in WPF and XAML.
  • Working With WPF ProgressBar Using C# And XAML12/9/2018 10:59:18 PM. The ProgressBar class in WPF represents a progress bar control in C#. The <ProgressBar> XAML elements can be used to create a progress bar at design time. The code examples in this tutorial demo
  • Working With WPF PasswordBox Using C# and XAML12/9/2018 9:26:58 PM. The PasswordBox class in WPF represents a Password TextBox that provides functionality to mask and hide characters. The code examples in this article demonstrate how to use a PasswordBox control in WP
  • Working with WPF Label using XAML and C#12/8/2018 7:54:33 AM. WPF Label class represents a Label control in C#. The <Label> element in XAML represents a Label control at design-time. The code examples in this article demonstrate how to use Label in WPF and
  • Working with WPF Menu Control using C# and XAML12/7/2018 9:24:35 AM. The Menu class in C# represents a WPF menu control. A menu item is represented by the MenuItem class. The code examples in this tutorial explain how to create menus in a WPF app and write menu item ev
  • Display Image In WPF using XAML and C#12/5/2018 8:36:47 AM. The Image class represents the WPF Image control that is used to display images in WPF. The <Image> element of XAML is used to create the Image control at design-time. The code example in this a
  • Future of WPF12/4/2018 8:12:03 AM. 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.
  • Using WPF GroupBox in C# and XAML12/3/2018 1:02:29 PM. A GroupBox control is a container that adds a header and a border to the area that can be used to place other controls. The <GroupBox> XAML element and the GroupBox class in C# represents a grou
  • Working With WPF Grid Panel12/2/2018 10:27:22 PM. 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#12/2/2018 10:19:54 PM. 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 WPF12/2/2018 11:33:31 AM. 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
  • Working with WPF Frame using C# and XAML11/30/2018 11:54:35 PM. The Frame class in C# and the <Frame> element in XAML represent a Frame windows control at run-time and design-time respectively. The code examples in this article demonstrate how to use a Frame
  • Working with WPF Expander Control using C# and XAML11/30/2018 11:46:28 PM. The Expander class in C# represents a WPF Expander control. At design-time, the <Expander> element of XAML is used to create an Expander control. The code examples in this tutorial demonstrate h
  • Explain Combo Box Binding In MVVM - WPF11/30/2018 12:34:48 AM. In this article, you will learn how to explain combo box binding in MVVM - WPF. INotifyPropertyChanged, ICommand interface
  • WPF ComboBox11/29/2018 10:21:01 PM. 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 Calendar11/29/2018 10:02:52 AM. 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 CheckBox11/29/2018 9:30:09 AM. 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 WPF11/29/2018 6:24:33 AM. 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
  • XAML Button11/29/2018 5:53:27 AM. The Button class represents a button control of WPF in C#. Button control is created using the <Button> element in XAML at design-time. The code examples in this Button tutorials show how to cre
  • WPF Border Tutorial11/28/2018 10:41:22 PM. 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#.
  • XAML Border11/28/2018 10:33:48 PM. The XAML <Border> element represents a border in Windows app. Code example in this tutorial shows how to apply a border to WPF controls using XAML and C#.
  • ScrollBar In WPF11/27/2018 10:18:14 PM. The WPF Scrollbar control adds scroll bars to a Windows or a control. The code examples in this tutorial shows use the ScrollBar class in C# and ScrollBar element in XAML to add scrolling functionalit
  • XAML Slider Code Sample11/26/2018 10:57:00 PM. XAML Slider element represents the slider control in XAML and WPF. The code example in this article uses <Slider> to implement a slider in WPF.
  • WPF Slider Control11/26/2018 9:42:18 PM. 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 Answers11/19/2018 11:16:45 PM. In this article you will learn about the most asked WPF Interview questions and answers.
  • Transferring data from one ListBox to another in WPF11/15/2018 10:44:39 PM. This article discusses how we can transfer items from one ListBox to another in WPF.
  • Transferring data from one ListBox to another in WPF11/15/2018 10:44:39 PM. This article discusses how we can transfer items from one ListBox to another in WPF.
  • WPF TextBlock11/14/2018 10:26:12 AM. 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
  • Using XAML TextBlock11/14/2018 10:15:38 AM. XAML TextBlock element represents a TextBlock control. These code examples demo how to declare and use a XAML Text Block.
  • Overview Of Styles In WPF11/13/2018 9:20:40 AM. 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 TextBox11/12/2018 3:39:49 PM. 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 co
  • XAML ToolTip Reference11/11/2018 7:40:07 PM. XAML ToolTip element represent a ToolTip of control that can be set using the ToolTip property of a WPF control. Here are some code examples of how to show tool tips of controls in WPF.
  • ToolTip in WPF11/11/2018 7:06:29 PM. 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 code examples
  • XAML TreeView11/10/2018 10:45:55 AM. XAML <TreeView> element represents a TreeView control in WPF. Here are a few XAML TreeView code examples.
  • ListBox In WPF11/9/2018 3:32:22 PM. WPF ListBox class represents a ListBox control that is collection of ListBoxItem. The <ListBox> XAML represents the UI of a ListBox. This tutorial and code examples are the various use cases of
  • ListBox In WPF11/9/2018 3:32:22 PM. WPF ListBox class represents a ListBox control that is collection of ListBoxItem. The <ListBox> XAML represents the UI of a ListBox. This tutorial and code examples are the various use cases of
  • XAML ListBox11/9/2018 11:35:03 AM. This is a reference tutorial of XAML ListBox element with code examples written in XAML and C#.
  • WPF Toolbar Tutorial11/8/2018 9:00:20 PM. 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
  • WPF ListView Tutorial11/8/2018 8:36:13 PM. WPF ListView control provides functionality to create a List of collection in a GridView. The <ListView> XAML represents the UI of a ListView. This tutorial and code examples are various use cas
  • GridView In WPF11/8/2018 4:10:19 PM. 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
  • XAML WrapPanel11/8/2018 11:05:51 AM. The WrapPanel element in XAML represents a Wrap Panel. This tutorial shows how to use a XAML WrapPanel in WPF and C#.
  • WPF WrapPanel Tutorial11/7/2018 9:40:31 PM. 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 W
  • Using XAML Popup In WPF11/6/2018 10:08:32 PM. Popup in WPF is a Windows that appears on top of a UI and shows a message. These code example demonstrate how to show a popup in WPF using XAML and C#.
  • Working with WPF Viewbox Control11/6/2018 11:30:40 AM. In this article, we will show how to use a ViewBox control available in WPF and XAML. Code sample shows use of Viewbox in XAML and C#.
  • Working with WPF Viewbox Control11/6/2018 11:30:40 AM. In this article, we will show how to use a ViewBox control available in WPF and XAML. Code sample shows use of Viewbox in XAML and C#.
  • Learn Navigation in XAML11/5/2018 6:09:22 AM. This article shows how to navigate to the next page with data.
  • Overview Of Composite Collection In WPF11/4/2018 11:42:02 AM. 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 Resources10/28/2018 11:59:29 PM. 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
  • WPF DataGrid Style10/17/2018 4:14:55 AM. 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 Brush10/11/2018 4:01:38 AM. 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 Introduction10/10/2018 1:39:17 AM. This article, an introduction to the WPF DataGrid, is the first article of a series.
  • DataGrid in WPF10/10/2018 1:23:30 AM. 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.
  • WPF Dependency Property10/9/2018 11:24:15 PM. While working with WPF you all may have come across the word Dependency Property, wondering what this may be and is it any time related to the property provided by CLR? So here I am with this article.
  • Image Viewer In WPF10/5/2018 12:22:31 AM. ImageViewer is an open source project written in WPF and C# that allows users to view images and manipulate them.
  • Hyperlink In WPF10/4/2018 9:04:50 AM. The Hyperlink element is an inline-level content element that is used to add a hyperlink to a FlowDocument contents. You can add hyperlink support to any Inline element.
  • Rating Control In WPF Toolkit10/1/2018 1:42:53 PM. Rating Control was introduced in WPF Toolkit February 2010 release. In this article we will see how we can use the Rating Control.
  • MessageBox In WPF10/1/2018 11:29:13 AM. A message box is a dialog box that displays an alert or a message or also lets the user have some options to choose from.
  • Media Element In WPF10/1/2018 9:51:33 AM. In this article, we will see how to use Media Element in WPF and we will explore some of the basic functionalities such as Play, Pause, Stop, Back and Forward.
  • Scatter Chart In WPF10/1/2018 9:49:10 AM. This article demonstrates how to draw scatter charts using WPF and C#.
  • Area Chart In WPF10/1/2018 6:55:59 AM. Charting in WPF is supported by an extended library. This article demonstrates how to draw area charts in WPF and C#.
  • Working With Pen In WPF9/28/2018 10:04:59 AM. WPF Pens draws outline of graphics shapes. Pen can create different types of lines and line caps. Pen class in WPF represents a pen. The code samples in this tutorial demonstrates basics of Pens in WP
  • Rectangle In WPF9/28/2018 7:19:07 AM. The Rectangle object represents a rectangle shape and draws a rectangle with the given height and width. This article demonstrates how to create rectangles in WPF and XAML.
  • Pie Chart In WPF9/28/2018 12:16:14 AM. The WPF Toolkit released in June 2009 comes with a data visualization assembly called System.Windows.Controls.DataVisualization.Toolkit.dll that hosts the charting functionality in WPF. This article d
  • WPF Popup9/27/2018 9:16:40 AM. WPF comes with a Popup control to provide this functionality. This article shows you how to create and use a Popup control available in Windows Presentation Foundation (WPF). I will use XAML with C#.
  • Polygon In WPF9/27/2018 9:09:08 AM. A polygon is a series of connected lines which is a closed shape. A closed shape is a shape that has same start point and end point. This article demonstrates how to create and use a polygon in WPF us
  • Polyline In WPF9/27/2018 9:07:24 AM. A polyline is a collection of connected straight lines. This article demonstrates how to create a polyline in WPF and XAML.
  • Custom MarkupExtesion For Binding Enum To ComboBox In WPF9/25/2018 8:32:37 AM. In this article, you will learn about custom MarkupExtesion for binding enum to ComboBox in WPF.
  • Ellipse In WPF9/23/2018 11:10:36 PM. The Ellipse object represents an ellipse shape and draws an ellipse with the given height and width. This article demonstrates how to create and use an ellipse in WPF and XAML.
  • Line Chart In WPF9/20/2018 11:39:39 PM. This article demonstrates how to draw line charts using WPF and C#. wpf line chart control, wpf chart control.
  • Windows Icon In WPF9/20/2018 3:15:21 PM. An Icon is a bitmap image (.ico file) that is displayed in the top left corner of a Window. This article discusses how to create and use Icons in WPF applications.
  • Using ImageBrush In WPF9/20/2018 3:14:04 PM. An image brush paints an area with an image. The ImageSource property represents the image to be used during the painting by an image brush. The ImageBrush object represents an image brush.
  • Masked TextBox In WPF9/18/2018 11:35:53 PM. In this article, I am going to show how we can create a masked textbox in WPF. If an integer value is required, then the user should type integer value and if a string is required, then they should ty
  • Path In WPF9/18/2018 9:00:08 AM. A graphics path is a set of connected lines, curves, and other simple graphics objects, including rectangles, ellipses, and text. This article demonstrates how to create and use paths in WPF and XAML.
  • Show/Delete/Edit data in WPF DataGrid using LINQ to SQL Classes9/18/2018 4:30:25 AM. This article will demonstrate how to Show, Delete, and Edit data in WPF Data Grid using LINQ to SQL Data Classes.
  • Data Binding in WPF ListView9/18/2018 4:15:30 AM. This article shows how to extract data from a database and show in a WPF ListView control.
  • A Simple WPF Application Implementing MVVM9/18/2018 4:02:42 AM. In this article you will see how to implement MVVM in a WPF application.
  • Login And Registration Process In WPF application9/18/2018 3:56:04 AM. In this article, I am creating a simple application for login and registration using WPF in visual studio 2010.
  • Working With StackPanel In WPF Using C#9/14/2018 7:59:34 AM. In this article, you will learn how to use a StackPanel in WPF using C#.
  • Printing a Control in WPF using C#9/13/2018 11:54:11 PM. This code snippet explains how to print a control, user control, container, or a Window in WPF using C#.
  • Printing in WPF9/13/2018 9:47:16 AM. This article discusses the process of printing in WPF and how to print a FlowDocument, Control, and Window in WPF.
  • Timer In WPF9/12/2018 10:06:44 AM. This article demonstrates how to implement timer in WPF using the DispatchTimer class.
  • Thumbnail In WPF9/12/2018 9:41:29 AM. This article demonstrates how to create thumbnail images in WPF using XAML and C#.
  • UniformGrid In WPF9/12/2018 9:31:07 AM. This article show how to use UniformGrid in WPF(Windows Presentation Foundation).
Source Code: Graphics Programming with GDI+
Graphics Programming with GDI+ is the .NET developer's guide to writing graphics appl...
Download