Skip to Content
Exploring Windows Presentation Foundation: With Practical Applications in .NET 5
book

Exploring Windows Presentation Foundation: With Practical Applications in .NET 5

by Taurius Litvinavicius
December 2020
Intermediate to advanced
230 pages
3h 41m
English
Apress
Content preview from Exploring Windows Presentation Foundation: With Practical Applications in .NET 5
© Taurius Litvinavicius 2021
T. LitvinaviciusExploring Windows Presentation Foundationhttps://doi.org/10.1007/978-1-4842-6637-3_2

2. Events

Taurius Litvinavicius1  
(1)
Jonava, Lithuania
 

Everything in WPF is based on events, like the click and change events, and although most of them are associated with specific elements, there are some that are more generic. In this chapter, you will learn how to use window-wide, application-wide, and other kinds of generic events.

Application Events

The application events and anything that is general about the whole application will be found in App.xaml.cs file. You will see why the XAML part of it exists in Chapter 6 of this book.
public partial class App : Application
    {
        protected override void OnActivated(EventArgs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

Alessandro Del Sole
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781484266373Purchase LinkPublisher Website