WPF is a UI framework for building Windows desktop applications. It supports features like controls, graphics, layout, data binding and documents. WPF uses XAML for declarative programming. Some key features of WPF include resolution independence, animations, 2D/3D support, media services and interoperability. Common WPF controls include buttons, textboxes, checkboxes etc. Popular layout panels in WPF are stack panel, wrap panel, dock panel, canvas and grid panel. WPF applications are still widely used today for desktop applications despite some limitations like not supporting older Windows versions and a more limited control suite than Windows Forms.
2. Better UI Statistics
When UI improves the customer experience, it
raises a company’s KPIs up to 83% in
conversion lift.
Research shows that, on average,
every $1 invested in UI and UX brings $100 in
return. That’s an ROI of a whopping 9,900%.
8 in 10 customers are willing to pay more for
better customer experience.
3. What is WPF?
WPF stands for Windows Presentation Foundation.
It is a UI framework for building Windows desktop
applications.
WPF supports a broad set of application development
features, including an application model, resources,
controls, graphics, layout, data binding and documents.
WPF uses the Extensible Application Markup Language
(XAML) to provide a declarative model for application
programming.
4. History Of WPF
2000
Work began under
code name AVALON
2005
AVALON was
renamed to WPF
2006
WPF released as a part
of .Net Framework 3.0
2018
Microsoft announced
WPF as open source
project on GitHub
7. How to Create your first WPF Application?
Step 1) Open Visual Studio And Create A New Project
8. How to Create your first WPF Application?
Step 2) Select WPF App(.Net Framework) and click Next
9. How to Create your first WPF Application?
Step 3) Assign name to your project an Click on Create
10. How to Create your first WPF Application?
Step 4)The Project window Opens up with code window and design window
11. How to Create your first WPF Application?
Step 5) From Toolbox double click on Textbox and the code will be automatically generated
12. How to Create your first WPF Application?
Step 6) To test your program click on the start button
13. How to Create your first WPF Application?
Step 7) The project will start running
14. What is XAML?
It stands for eXtensible Application Markup Language.
Simple and declarative language based on XML
Mainly used for designing GUIs
Basic Syntax:-
<Window x:Class = "Resources.MainWindow"
xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x = "http://schemas.microsoft.com/winfx/2006/xaml"
Title = "MainWindow" Height = "350" Width = "525">
<Grid>
</Grid>
</Window>
22. Disadvantages of WPF
WPF will not run on Windows 2000 or lower
WPF’s in-box control suite is far more limited than
that of WinForms
23. Is WPF Dead in 2021?
• Still the best technology out there for building
desktop applications
• Extremely powerful for creating any PC business
based application
• Businesses that still use applications that were written
in this technology
• Third party support from companies such as Telerik or
Devexpress