将 WPF 转换为 .XBAP 不起作用!
你好 我想将 WPF 与 ASP.NET 项目集成 我读到了有关此问题的信息,并且我知道我必须将 WPF 项目转换为 .xbap 我尝试遵循此 http://www.xbap.org/tutorial.html 在两个项目上:
1-作为对 WPFBrowserApplication 的测试:结果是 只是一个 .xbap 文件,当我运行它时,本地主机网页以“Hello XBAP”打开,
但我想
在这个上转换以下 WPF 应用程序 2- https://msmvps.com/blogs/theproblemsolver/archive/2009/12/23/rehosting -the-workflow-designer-in-wf4.aspx 我把 从第 4 步开始,它只是在 WPF 网格上给了我“Hello XBAP”并作为桌面应用程序运行 即使我将 xaml 和 xaml.cs 中的所有内容从窗口更改为页面,
我真的需要帮助。谢谢
Hello
I want to integrate WPF with ASP.NET project I read about this problem, and I know I have to convert the WPF project to .xbap I tried to follow this http://www.xbap.org/tutorial.html on two projects :
1- as a test on a WPFBrowserApplication : the result was
just a .xbap file when i run it a local host web page opened with " Hello XBAP "
but I want to convert the following WPF app
2- on this one https://msmvps.com/blogs/theproblemsolver/archive/2009/12/23/rehosting-the-workflow-designer-in-wf4.aspx I put the
good from Step 4 it just gave me thr " Hello XBAP" on the WPF grid and run as a desktop app
even I changed every thing in xaml and xaml.cs from Window to Page
I really need help. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试本教程:
http://www.charlespetzold.com/blog/2006 /11/120718.html
You can try this tutorial:
http://www.charlespetzold.com/blog/2006/11/120718.html
要将基于页面的应用程序转换为 XBAP,请在 .vbproj 文件中设置 4 个关键标记的值
1.如果您想在 Web 浏览器中托管应用程序,您可以将 HostInBroser 标记设置为 True
2. 将安装标记设置为 False 以防止在计算机上安装 XBAP。将此标记设置为 False 还会将应用程序缓存到 Internet 临时文件夹中
3.ApplicationExtension 标签将.xbap 设置为应用程序文件的扩展名。
4.您使用TargetZone标签来设置应用程序的Internet安全级别。
To convert a page-based application to XBAP you set values for 4 key tags in the .vbproj file
1.If you want to Host the application in a web browser you can set the HostInBroser tag to True
2.You set the Install tag to False to prevent installation of XBAP on a computer. Setting this tag to False also caches the application in the Temporary Internet Files Folder
3.The ApplicationExtension tag sets .xbap as the extension of the application file.
4.You use the TargetZone tag to set the Internet security level of the application.