本文介绍了Pages.Xaml文件如何在silverlight应用程序中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Pages.Xaml文件如何在Silverlight应用中运行?

  

  查看XAML的方法有哪些代码图形化?

How does the Pages.Xaml file work in a silverlight app?
  
  What are the ways to view XAML code graphically?

  我已经在Visual Studio 2008中提交了SilverLight应用程序。

  I have been handed a SilverLight application in Visual Studio 2008.

  当我在工作时在Visual Studio 2010中的WCF应用程序,我注意到我可以用图形方式查看XAML代码。 换句话说,我实际上可以看到我正在处理的图像。 你能在Visual Studio 2008中做同样的事情吗? 
我猜这是Expression Blend的用途。

  When I was working on a WCF application in Visual Studio 2010, I noticed I could view XAML code graphically.  In other words, I could actually see the image of what I was working on.  Can you do the same thing in Visual Studio 2008?  I am guessing that this is what Expression Blend is for.

  在Expression Blend中,当我尝试打开App.xaml时出现以下错误:

  In Expression Blend, I get the following error when I try to open App.xaml:

    App.xaml无法在设计视图中进行编辑。

   要编辑资源,请从"资源"面板中进行选择。

   App.xaml cannot be edited in design view.
   To edit resources, select from the Resources panel.

  但还有另一个xaml页面。 该文件是"page.xaml"吗?大多数Silverlight项目中常见的一种? 当我通过在Expression Blend中单击它来打开这个文件时,一个选项卡式界面会在Expression bland中显示出来,看起来有点像
,就像flash开发者用户界面的样子一样。 这为我打开了大量问题。 它真的只是一个xml文件或组合吗? 我查看了Visual Studio中这个XAML文件代码的xml结构,我看到
是以这样的方式进行的,这样我就可以看到它是怎样的 用于在组中换出页面内容。 这是常见的吗? 如何设计代码来实现这一目标?

  But there is another xaml page.  Is the file "page.xaml" one that is common in most silverlight projects?  When I open this file by clicking on it in Expression Blend a tabbed interface oppens up in Expression bland that looks somewhat like how the flash developers user interface looks like.  This opens a flood of questions for me.  Is it really just one xml file or a combination?  I looked at the xml structure of this XAML file code in Visual Studio and I see that it is arragned such in such a way that I can see how it could be  used to swap out page contents s in groups.  Is this common?  How is the code designed to make this happen?

  我注意到很多关于Expression Blend在线的入门教程都采用了视频的形式。 我现在不能看这些,因为我没有一套耳机。 还有其他方法可以学习这些东西吗?

  I noticed that a lot of introductionaly tutorials for Expression Blend online were in the form of videos.  I cannot watch these right now because I do not have a set of headphones.  Is there some other way to learn this stuff?

推荐答案

App.xaml无法以图形方式查看,因为它是资源文件,没有可视元素。您可以单击该面板右上角的XAML按钮以XML文本格式查看。

App.xaml cannot be viewed graphically because it is a resource file, no visual element. You can click on the XAML buttom on that panel top right corner to view it in XML text.

如果计算机扬声器不起作用,您可以阅读"教程和白皮书" ;第一部分:

if the computer speaker didn't work, you may read the "Tutorials and Whitepapers" section first:

谢谢,

 


这篇关于Pages.Xaml文件如何在silverlight应用程序中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 05:09