什么是一个XAML应用程序的工作流程看起来像

什么是一个XAML应用程序的工作流程看起来像

本文介绍了什么是一个XAML应用程序的工作流程看起来像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我一直在试图找到如何申请与用XAML的GUI生命周期的样子。 真糊涂我。报价:



1. The App constructor is called in App.xaml.cs.
2. XAML in App.xaml is parsed.
3. Application_Launching is called in App.xaml.cs.
4. The Page constructor of your MainPage is called.
5. XAML in your MainPage is parsed.
6. OnNavigatedTo is called in your MainPage.

I though that XAML is compiled to BAML and embedded to dll. Runtime just translates BAML to .Net objects.

Is it different for WP7 Silverlight? Does Runtime parse it like a browser parses HTML?What is the point of C# files generated from XAML? (e.g. Main.xaml.g.cs) Is it different for C++ and XAML apps?

解决方案

.g.cs files are auto-generated and contain information related to the general layout of a XAML page. Here is a pretty good description.

The runtime indeed parses the XAML that is embedded in the assembly - unlike WPF, it is not embedded as BAML.

这篇关于什么是一个XAML应用程序的工作流程看起来像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 12:20