How to convert a WPF browser app to WPF Windows application

Source: Internet
Author: User
Tags visual studio 2010

Reproduced in: http://dotnetframework.blogspot.com.au/2011/01/wpf-browser-application-wpf-windows.html

WPF Browser application is the newer feature in WPF. In fact its basic concept is still ClickOnce Application. Therefore, we must be very careful in the handling of authority and safety control.

If your system has been developed with WPF Browser Project template, how do we quickly and painlessly convert to WPF Windows application? After studying it, we found that we could quickly switch programs to WPF Window application using the way we modified the project file.

Let me start with Visual Studio 2010, select WPF Browser application, project name: HelloWorld, build a WPF Browser application paradigm

Open the Helloworld.csproj (*.csproj) original file.

Instead of opening a special eucalyptus, open the XML content of Project File

In the PropertyGroup section, find three tags.


        • StartAction: Refers to the start location of the debug, corresponding to the Project property Windows


        hostInBrowser: Whether to start with IE

Generatemanifests: Whether to set permissions, corresponding to project property Windows

      will be
    1. <StartAction>URL</startaction>, change to <StartAction>Project</StartAction>
    2. <HostInBrowser>truefalse</ Hostinbrowser>
    3. <GenerateManifests>true</generatemanifest>, change to <GenerateManifests>false </GenerateManifests>

Reload the project once and execute the program again, and you'll see that the original program becomes WPF Windows application

How to convert a WPF browser app to WPF Windows application

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.