The Application Class

Before we can begin to display items using the Windows Presentation Foundation, we have to consider how Windows applications work within this environment. Up until now, we have written very simple programs. They have created and used resources directly. Our programs have produced output by interacting directly with the required devices and obtained input by binding to events generated by the hardware itself. We have noticed that when our program reaches the end of the Main method, it stops running. In other words, there is nothing managing the execution of our application; our programs have sole control of the platform. This is perfectly acceptable for very simple applications, such as our first flashlight program.

However, ...

Get Embedded Programming with the Microsoft® .NET Micro Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.