简体   繁体   English

在.net应用程序中嵌入Microsoft表达式混合

[英]Embed microsoft expression blend inside a .net application

Is there any way to embed microsoft expression blend inside a .net application ( to create xaml files)? 有什么方法可以将Microsoft表达式混合嵌入到.net应用程序中(以创建xaml文件)? If not is there any other xaml designer to use instead? 如果没有,可以使用其他xaml设计器代替吗?

More detail: I want to let end user, to design UI by xaml designer at runtime. 更多详细信息:我想让最终用户在运行时通过xaml Designer设计UI。

To design
  1. Open an Project in visual studio. 在Visual Studio中打开一个项目。
  2. In solution explorer right click on your .xaml file. 在解决方案资源管理器中,右键单击您的.xaml文件。
  3. Click open with. 单击打开方式。
  4. Select expression blend. 选择表达混合。
  5. Design xaml file 设计XAML文件
  6. Save it 保存
  7. Your .xaml file inside .net project in visual studio will automatically be updated with each save. Visual Studio .net项目中的.xaml文件将在每次保存时自动更新。

You can also create .xaml file in expression blend and then add the xaml file into your .net application. 您也可以在表达式混合中创建.xaml文件,然后将xaml文件添加到.net应用程序中。

  1. Right click on your application name in solution explorer in visual studio. 在Visual Studio的解决方案资源管理器中右键单击您的应用程序名称。
  2. click add 点击添加
  3. click existing item 点击现有项目

If you want to give your users a XAML editor for editing XAML with Visual studio functionality, then you may have to learn about Embeding Visual Studio Editor in your application. 如果要为用户提供XAML编辑器以使用Visual Studio功能编辑XAML,则可能必须了解在应用程序中嵌入Visual Studio编辑器的知识。 Something like this: http://dotneteers.net/blogs/divedeeper/archive/2010/07/28/LearnVSXNow_2D00_Part45.aspx 像这样的东西: http : //dotneteers.net/blogs/divedeeper/archive/2010/07/28/LearnVSXNow_2D00_Part45.aspx

Moreover, you can also distribute this, but you will have to find details about its Licensing issues. 此外,您也可以分发此文件,但是您将不得不查找有关其许可问题的详细信息。 I heard that Microsoft allows it for free, but not sure. 我听说微软免费提供它,但不确定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM