Since this is a Silverlight for Windows Phone application, you need to follow the Silverlight programming model and define your user interface using XAML.

Windows Phone 7 Series Developer Training Kit的学习小记

Figure 6 Creating and saving a new Windows Phone application project in Microsoft Visual Studio 2010

Windows Phone 7 Series Developer Training Kit的学习小记

Figure 5 Creating a new Windows Phone application project in Microsoft Visual Studio 2010 Express for Windows Phone

注意是不一样的visual studio 2010版本啊!

 

打开App.xaml可以看到以Application为根的XAML文档,里面包含了Application.Resource,更是初始化了RootVisual属性来定义程序的第一个page

App.xaml和App.xaml.cs定义了Application类的一个实例,这个Application类封装了对应于windows phone的Silverlight并且提供了程序的入口点

 

MainPage.xaml定义了程序的主要UI

 

Task 5 – Managing Errors in the Application

待续

相关文章:

  • 2021-10-29
  • 2021-09-27
  • 2021-05-17
  • 2021-11-25
  • 2022-02-22
  • 2021-07-22
  • 2022-01-29
  • 2021-08-02
猜你喜欢
  • 2021-05-30
  • 2022-01-21
  • 2021-10-25
  • 2022-01-10
  • 2021-08-18
  • 2021-12-11
  • 2021-12-18
相关资源
相似解决方案