Professional Documents
Culture Documents
https://sites.google.com/a/quest.edu.pk/dr-irfana-memon/lecture-slides
Course Content (1)
Part 1: Console Based Applications
Introduction to Microsoft Visual C# and Visual Studio
Working with variables, Data types, Operators, and Expressions
Visual C# Programming Language Constructs, Creating Methods
Invoking Methods, Handling Exceptions, Creating overloaded Methods
Using Decision Statements
3
Introduction
• WPF stands for Windows Presentation Foundation.
• It is a powerful framework for building Windows applications.
• WPF was first introduces in .NET framework 3.0 version, and
then so many other features were added in the subsequent
12
WPF Architecture
The presentation framework and
the presentation core have been
written in managed code.
Both GUI and behavior was created in the same language, e.g.
C# or VB.Net which would require more effort from the
developer to implement both UI and behavior associated with
17
WPF – HELLO WORLD
We develop a simple Hello World WPF application.
So let’s start the simple implementation by following the steps
given below.
21
WPF – HELLO WORLD
8. In mainwindow.xaml file, the following XAML tags are
written by default.
29
Basic SYNTAX
When you create your new WPF project, you will encounter
some of the XAML code by default in MainWindow.xaml as
shown below.
33
Basic SYNTAX
Example of an alternate syntax do define properties
(Property element syntax):