What does it mean to "Enable Application Framework" for a WPF application?
Asked Answered
C

1

13

I'm creating a WPF application in VB.Net. I am trying to decide where my startup code should go. I seem to have two choices:

  1. Leave the "Enable Application Framework" box checked and choose a "Startup URI" from among the application's windows.
  2. Uncheck "Enable Application Framework" and choose to startup in my own Sub Main.

What are the implications of enabling or disabling the application framework, and why does the application framework restrict my choice of startup options?

-TC

Checkoff answered 21/5, 2012 at 18:15 Comment(2)
The startup option part of this question is addressed here: https://mcmap.net/q/860115/-cannot-select-main-method-as-startup-object-in-visual-studio-express-2010Peshitta
Does this answer your question? Enable application framework settings in WPF projects?Peshitta
J
7

The Visual Studio magazine has an article about this. Here's an excerpt.

Visual Basic supports an "Application Framework" that makes it easier to manage the startup, shutdown, and exception management of an application. You enable or disable the application framework with a check box in the Project Properties. The application framework is part of the work Visual Basic does to make your development easier.

Jaffa answered 21/5, 2012 at 19:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.