1.Application Encapsulated wpf Some common functions of , For example, check for unhandled exceptions , Handle command line parameters, etc .

2. How to start wpf Program :

app.xaml Can be used to start wpf Form . You don't have to use this way . Create a app.cs Class . And then in it main Method

Application app=new Application(); It is used as a wpf Program entry ; Then create a form object (mainWindow.xaml Form , It's something else ).

mainWindow mv=new mainWindow();

app.run(mv); call run Method start up .

Another way to start : adopt url The way .

Application app=new Application();

app.startup=new url("mainWindow.xaml",urikind.relative);urikind.relative This parameter represents relative url

app.run();

wfp(Application The use of ) More articles about

  1. WPF, WPF Browser Application(XBAP) and Silverlight The difference between

    The figure is visible ,XBAP And WPF Is the difference between the “ Limited ”:Silverlight And XBAP Is the difference between the , Unwanted .NET Framework. Last week, I argued with my former colleagues about the use of XBAP To develop XX Client ( For the author before the development of ...

  2. Windows drive _WFP One of WFP What is it?

    Now the problem of network security , More and more attention , Microsoft is in VISTA in the future , Used WFP Platform instead of before XP and 03 Technology based on packet filtering in , such as Transport Driver Interface(TDI) Filter ,Networ ...

  3. Get along well with Windows Service series —— Use Boost.Application Fast build Windows service

    Get along well with Windows Service series —— establish Windows In service , Describes how to quickly use VS Construct a Windows service .Debug.Release Version Registration and uninstallation , Its principle and service operation . Stop process analysis introduces Wi ...

  4. WCF : Repair Security settings for this service require Windows Authentication but it is not enabled for the IIS application that hosts this service problem

    Abstract : Recently I met a strange WCF Security configuration issues , WCF Service It's configured Windows Authentication. IIS It's also enabled on the Internet Windows Authentication ...

  5. ABP( modern ASP.NET Template development framework ) Series of 15、ABP application layer —— Application service (Application services)

    Click here to enter ABP Total contents of the series be based on DDD Modern ASP.NET Development framework --ABP Series of 15.ABP application layer —— Application service (Application services) ABP yes “ASP.NET Boiler ...

  6. ABP Source code analysis :ZERO Of Application and Tenant

    ABP Of Zero The module takes the database as the data source ABP In the framework tenant management (multi-tenancy), role management, user management, ses ...

  7. myeclipse Can't start java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).

    hold myeclipse10 Copy it to another computer according to the directory , Another directory Original installation directory D\:\soft\i\myeclipse10 New installation directory E\:\soft\myeclipse10 Double click to start failed , ...

  8. Android note ——Application The role of

    One .Application What is it? Application and Actovotu,Service Same as android A system component of the framework , When android When the program starts, the system will create a application object , ...

  9. My First Android Application Project The first android app

    One . Preface : Android (Android): It's based on Linux Free and open source operating system , Mainly used on mobile devices , Such as mobile phone . The tablet . Other devices also use the Android operating system , such as : The TV , console . Digital cameras and so on . Two . have ...

Random recommendation

  1. Introduce several kinds of SSIS Deployment way

    Introduce If you've developed a good one SSIS Package and can run perfectly in your local , Each mission lights up a green pass sign . At this time, in order to enable the package processing to run at a specified time , You need to publish it to a server , And make the relevant configuration . As a development ...

  2. win7_64 A virtual machine is installed on a host computer Linux System (VMware Workstation10+CentOS6.5) Detailed steps and illustrations

    First step : Create a new virtual machine The second step : choice “ A typical ” install The third step : Select image file to install — Browse options iso file Step four : Choose to install the operating system later Step five : System selection Linux, Version selection centOS64 position Step six : Virtual machine name ...

  3. Mr. Conan : Look at... In the era of big data IT framework (6) Message queue RabbitMQ-- Case study (Publish/Subscribe set sail )

    Two .Publish/Subscribe( Release / subscribe )(using the Java Client) To illustrate this pattern , We're going to build a simple logging system . It will include two projects : The first one will issue a log message The second one will take ...

  4. AsyncQueryHandler Processing data

    Reference resources :http://blog.csdn.net/hfreeman2011/article/details/8555474 and http://blog.csdn.net/dragondog/article/ ...

  5. Study GDI+ (1)

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; usin ...

  6. react-native —— stay Mac On the configuration React Native Android Summary of development environment drainage

    To configure React Native Android Development Environment Summary 1. uninstall Android Studio, At terminal (terminal) Execute the following command : rm -Rf /Applications/Android\ S ...

  7. sqlser 2005 Use the execution plan to optimize your sql

    One :sqlserver Introduction to the implementation plan    sqlserver The executive plan is in sqlser manager studio Open in the tool , It's to check one sql Tools for executive efficiency . Suggest cooperation SET STATISTICS ...

  8. 47.Majority Element I & II

    Majority Element I describe Given an integer array , Find the main element , Its occurrence in the array is strictly more than one-half of the number of array elements . You may assume that the array is non ...

  9. LFS、BLFS、ALFS、HLFS The difference between

    from :http://www.ha97.com/3927.html Linux From Scratch (LFS) And their descendants represent a new approach , Reveal to users  Linux  How the operating system works .LFS Based on this ...

  10. JAVA Start from scratch < 6、 ... and >

    One . Static code block Static code blocks don't need to create objects to execute , Prior to object data in memory Two . Static functions 3、 ... and . Singleton design pattern 1. The hungry man mode shortcoming : Create an object as soon as you declare it , If it's not used, it's wasted . 2. Lazy singleton mode 1. ...