WpfAppType1 ( WPF ) |
Reference Point:
- StartUpUri :
http://msdn.microsoft.com/en-us/library/system.windows.application.startupuri.aspx
- Start-Up
http://msdn.microsoft.com/en-us/library/system.windows.application.startup.aspx
|
void app_Startup(object sender, StartupEventArgs e)
{
// Create a window
MainWindow window = new MainWindow();
// Open a window
window.Show();
}
|
Objectives:
- .Application Type concept
- There are three types of WPF
- Window Application : very similar to windows
- Navigation Application
- XBAP
- Machine of Application Type: <Application x:Class="WpfAppType1.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
- Code : App.xaml.txt,
App.xaml.cs.txt,
MainWindow.xaml.txt,
MainWindow.xaml.cs.txt
|
Step:1 Create a New project
|
Step:2 Implementation of winnows
A) MainWindow.xaml
B) MainWindow.xaml.cs : Essential
Component in WPF; the Code Behind of XAML and XAML file
|
Step:3 Manager Behind:
Application Type
|
Step:4 Runtime viewsOpens a
Form-like contour, where Grid ( by default ) control serves as a root a7
container control for a WPF-Application.
|
|