C# Tutorials - Herong's Tutorial Examples
∟WPF - Windows Presentation Foundation
Tutorial notes and examples are provided on WPF (Windows Presentation Foundation). Topics include introduction of WPF; System.Windows.Application and System.Windows.Window classes; System.Windows.Controls.* classes; Button click example; MSBuild project file for WPF applications..
What Is WPF?
System.Windows.Application Class
System.Windows.Window Class
HelloWPF.cs - First WPF Application
System.Windows.Controls Namespace
WPF Button Click Test
Compiling WPF Applications with MSBuild
What Is XAML?
Takeaways:
- WPF (Windows Presentation Foundation) a graphical subsystem in .NET Framework
for Windows GUI applications.
- System.Windows.Application class represents a WPF application.
- System.Windows.Window class represents a window or a dialog box on the screen.
- The entry point, Main() method, of a WPF application must be marked
as STA (Single-Threaded Apartment) Thread: [System.STAThread].
- System.Windows.Controls namespace contains
classes representing UI controls, like buttons, check boxes, combo boxes, labels, panels, etc.
- The "+=" operator can be used to assign an event handler function
to an event.
- WPF assembly (.dll) files are
located at: "C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1".
- MSBuild can be used to help build WPF applications.
- XAML (eXtensible Application Markup Language)
can be used to separate out UI look and feel design out of application
behavior source code.
Table of Contents
About This Book
Introduction of C# (C Sharp)
Data Type and Variables
Logical Expressions and Conditional Statements
Arrays and Loop Statements
Data Type Features
Floating-Point Data Types
Passing Parameters to Methods
Execution Environment Class
Visual C# 2010 Express Edition
Class Features
C# Compiler and Intermediate Language
Compiling C# Source Code Files
MSBuild - Microsoft Build Engine
Memory Usages of Processes
Multithreading in C#
Async Feature from C# 5
System.IO.FileInfo Class
System.Diagnostics.FileVersionInfo Class
►WPF - Windows Presentation Foundation
Partial Classes and Partial Methods
Archived Tutorials
References
Full Version in PDF/ePUB