wpf-tutorial.com Open in urlscan Pro
162.55.83.9  Public Scan

URL: https://wpf-tutorial.com/
Submission: On July 24 via manual from GB — Scanned from JP

Form analysis 0 forms found in the DOM

Text Content

WPF Tutorial
TOC
Table of Contents


DOWNLOAD AS PDF

Download this entire tutorial as PDF, plus all the code samples, right now!



ABOUT  WPF

 * What is WPF?
 * WPF vs. WinForms




GETTING STARTED

 * Visual Studio Community
 * Hello, WPF!


XAML

 * What is XAML?
 * Basic XAML
 * Events in XAML




A  WPF APPLICATION

 * A WPF Application - Introduction
 * The Window
 * Working with App.xaml
 * Command-line parameters in WPF
 * Resources
 * Handling exceptions in WPF
 * Application Culture / UICulture


BASIC CONTROLS

 * The TextBlock control
 * The TextBlock control - Inline formatting
 * The Label control
 * The TextBox control
 * The Button control
 * The CheckBox control
 * The RadioButton control
 * The PasswordBox control
 * The Image control


CONTROL CONCEPTS

 * Control ToolTips
 * WPF text rendering
 * Tab Order
 * Access Keys




PANELS

 * Introduction to WPF panels
 * The Canvas control
 * The WrapPanel control
 * The StackPanel control
 * The DockPanel control
 * The Grid Control
 * The Grid - Rows & columns
 * The Grid - Units
 * The Grid - Spanning
 * The GridSplitter
 * Using the Grid: A contact form


USERCONTROLS & CUSTOMCONTROLS

 * Introduction
 * Creating & using a UserControl


DATA BINDING

 * Introduction to WPF data binding
 * Hello, bound world!
 * Using the DataContext
 * Data binding via Code-behind
 * The UpdateSourceTrigger property
 * Responding to changes
 * Value conversion with IValueConverter
 * The StringFormat property
 * Debugging data bindings




COMMANDS

 * Introduction to WPF Commands
 * Using WPF commands
 * Implementing a custom WPF Command


DIALOGS

 * The MessageBox
 * The OpenFileDialog
 * The SaveFileDialog
 * The other dialogs
 * Creating a custom input dialog





COMMON INTERFACE CONTROLS

 * The WPF Menu control
 * The WPF ContextMenu
 * The WPF ToolBar control
 * The WPF StatusBar control
 * The Ribbon control




RICH TEXT CONTROLS

 * Introduction to WPF Rich Text controls
 * The FlowDocumentScrollViewer control
 * The FlowDocumentPageViewer control
 * The FlowDocumentReader control
 * Creating a FlowDocument from Code-behind
 * Advanced FlowDocument content
 * The RichTextBox control
 * How-to: Creating a Rich Text Editor





MISC. CONTROLS

 * The Border control
 * The Slider control
 * The ProgressBar control
 * The WebBrowser control
 * The WindowsFormsHost control
 * The GroupBox control
 * The Calendar control
 * The DatePicker control
 * The Expander control


THE TABCONTROL

 * Using the WPF TabControl
 * WPF TabControl: Tab positions
 * WPF TabControl: Styling the TabItems


LIST CONTROLS

 * The ItemsControl
 * The ListBox control
 * The ComboBox control


THE LISTVIEW CONTROL

 * Introduction to the ListView control
 * A simple ListView example
 * ListView, data binding and ItemTemplate
 * ListView with a GridView
 * How-to: ListView with left aligned column names
 * ListView grouping
 * ListView sorting
 * How-to: ListView with column sorting
 * ListView filtering


THE TREEVIEW CONTROL

 * TreeView introduction
 * A simple TreeView example
 * TreeView, data binding and multiple templates
 * TreeView - Selection/Expansion state
 * Lazy loading TreeView items


THE DATAGRID CONTROL

 * The DataGrid control
 * DataGrid columns
 * DataGrid with row details


STYLES

 * Introduction to WPF styles
 * Using WPF styles
 * Trigger, DataTrigger & EventTrigger
 * WPF MultiTrigger and MultiDataTrigger
 * Trigger animations


AUDIO & VIDEO

 * Playing audio
 * Playing video
 * How-to: Creating a complete Audio/Video player
 * Speech synthesis (making WPF talk)
 * Speech recognition (making WPF listen)


MISC.

 * The DispatcherTimer
 * Multi-threading with the BackgroundWorker
 * Cancelling the BackgroundWorker


CREATING A GAME: SNAKEWPF

 * Introduction
 * Creating the game area
 * Creating & moving the Snake
 * Continuous movement with DispatcherTimer
 * Adding food for the Snake
 * Controlling the Snake
 * Collision Detection
 * Improving SnakeWPF: Making it look more like a game
 * Improving SnakeWPF: Adding a high score list
 * Improving SnakeWPF: Adding sound
 * Full game & final words

 * 
 * WPF
 * ASP.NET MVC
 * ASP.NET WebForms
 * C#
 * CSS3
 * HTML5
 * JavaScript
 * jQuery
 * PHP5




THE COMPLETE WPF TUTORIAL

Welcome to this WPF tutorial, currently consisting of 126 articles, where you'll
learn to make your own  applications using the WPF UI  framework. If you're
brand new to WPF, then we recommend that you start from the first chapter and
then read your way through all of it.

Have a look at the Table of contents to the right, where all the chapters are
listed and be sure to come back regularly, as we will keep adding new chapters
to it. We hope that this tutorial will get you started properly on WPF.

A basic knowledge of C# is recommended when learning to use WPF. If you don't
already know some C#, you may wish to get a better sense of by going through a
C# tutorial. During the topics on XAML and styling, you will also benefit from a
proper understanding of HTML and CSS.

We hope you like this tutorial and if you do, please help us by linking to it
from your website and share it with your friends on social media like Facebook
and Twitter. Enjoy!

>> Start the tutorial

--------------------------------------------------------------------------------


LOCALIZED VERSIONS

Would you prefer to read this tutorial in another language? All our content is
available for translation by our visitors and this tutorial is currently being
translated into many new languages.

Top 10 Languages

Language Most active user Progress German Heinz Kessler
100% complete
Spanish User #2893 ?
100% complete
Chinese Noctwolf
100% complete
Russian Ilya Degtyarev
100% complete
Czech User #7148 ?
100% complete
French User #981 ?
100% complete
Vietnamese Trung Soo
99% complete
Italian User #3491 ?
98% complete
Portuguese Paulo Duarte
98% complete
Polish Krzysztof Jaskulski
86% complete
More languages...

A big thanks goes out to all the translators making this possible! Perhaps you
would like to contribute as well? Select language...



© wpf-tutorial.com 2007-2024

 * Contact Us
 * Localization






Table of Contents


DOWNLOAD AS PDF

Download this entire tutorial as PDF, plus all the code samples, right now!



ABOUT  WPF

 * What is WPF?
 * WPF vs. WinForms




GETTING STARTED

 * Visual Studio Community
 * Hello, WPF!


XAML

 * What is XAML?
 * Basic XAML
 * Events in XAML




A  WPF APPLICATION

 * A WPF Application - Introduction
 * The Window
 * Working with App.xaml
 * Command-line parameters in WPF
 * Resources
 * Handling exceptions in WPF
 * Application Culture / UICulture


BASIC CONTROLS

 * The TextBlock control
 * The TextBlock control - Inline formatting
 * The Label control
 * The TextBox control
 * The Button control
 * The CheckBox control
 * The RadioButton control
 * The PasswordBox control
 * The Image control


CONTROL CONCEPTS

 * Control ToolTips
 * WPF text rendering
 * Tab Order
 * Access Keys




PANELS

 * Introduction to WPF panels
 * The Canvas control
 * The WrapPanel control
 * The StackPanel control
 * The DockPanel control
 * The Grid Control
 * The Grid - Rows & columns
 * The Grid - Units
 * The Grid - Spanning
 * The GridSplitter
 * Using the Grid: A contact form


USERCONTROLS & CUSTOMCONTROLS

 * Introduction
 * Creating & using a UserControl


DATA BINDING

 * Introduction to WPF data binding
 * Hello, bound world!
 * Using the DataContext
 * Data binding via Code-behind
 * The UpdateSourceTrigger property
 * Responding to changes
 * Value conversion with IValueConverter
 * The StringFormat property
 * Debugging data bindings




COMMANDS

 * Introduction to WPF Commands
 * Using WPF commands
 * Implementing a custom WPF Command


DIALOGS

 * The MessageBox
 * The OpenFileDialog
 * The SaveFileDialog
 * The other dialogs
 * Creating a custom input dialog





COMMON INTERFACE CONTROLS

 * The WPF Menu control
 * The WPF ContextMenu
 * The WPF ToolBar control
 * The WPF StatusBar control
 * The Ribbon control




RICH TEXT CONTROLS

 * Introduction to WPF Rich Text controls
 * The FlowDocumentScrollViewer control
 * The FlowDocumentPageViewer control
 * The FlowDocumentReader control
 * Creating a FlowDocument from Code-behind
 * Advanced FlowDocument content
 * The RichTextBox control
 * How-to: Creating a Rich Text Editor





MISC. CONTROLS

 * The Border control
 * The Slider control
 * The ProgressBar control
 * The WebBrowser control
 * The WindowsFormsHost control
 * The GroupBox control
 * The Calendar control
 * The DatePicker control
 * The Expander control


THE TABCONTROL

 * Using the WPF TabControl
 * WPF TabControl: Tab positions
 * WPF TabControl: Styling the TabItems


LIST CONTROLS

 * The ItemsControl
 * The ListBox control
 * The ComboBox control


THE LISTVIEW CONTROL

 * Introduction to the ListView control
 * A simple ListView example
 * ListView, data binding and ItemTemplate
 * ListView with a GridView
 * How-to: ListView with left aligned column names
 * ListView grouping
 * ListView sorting
 * How-to: ListView with column sorting
 * ListView filtering


THE TREEVIEW CONTROL

 * TreeView introduction
 * A simple TreeView example
 * TreeView, data binding and multiple templates
 * TreeView - Selection/Expansion state
 * Lazy loading TreeView items


THE DATAGRID CONTROL

 * The DataGrid control
 * DataGrid columns
 * DataGrid with row details


STYLES

 * Introduction to WPF styles
 * Using WPF styles
 * Trigger, DataTrigger & EventTrigger
 * WPF MultiTrigger and MultiDataTrigger
 * Trigger animations


AUDIO & VIDEO

 * Playing audio
 * Playing video
 * How-to: Creating a complete Audio/Video player
 * Speech synthesis (making WPF talk)
 * Speech recognition (making WPF listen)


MISC.

 * The DispatcherTimer
 * Multi-threading with the BackgroundWorker
 * Cancelling the BackgroundWorker


CREATING A GAME: SNAKEWPF

 * Introduction
 * Creating the game area
 * Creating & moving the Snake
 * Continuous movement with DispatcherTimer
 * Adding food for the Snake
 * Controlling the Snake
 * Collision Detection
 * Improving SnakeWPF: Making it look more like a game
 * Improving SnakeWPF: Adding a high score list
 * Improving SnakeWPF: Adding sound
 * Full game & final words