[英]How can I create a hybrid Silverlight and aspx application
Here is my scenerio.. 这是我的场景。
We have an ASP.Net 2.x web site. 我们有一个ASP.Net 2.x网站。 We want to migrate it to Silverlight full frame application.
我们希望将其迁移到Silverlight全帧应用程序。 However, there is no way we can go away in a corner and redo every web page in SL right off the bat.
但是,我们无法一a而就,无法立即重做SL中的每个网页。
What I would like to do is build the chrome of the app (main page, dashboard, login, common system/config screens, main menu) in SL and be able to open existing .aspx pages in the main content SL frame. 我想做的是在SL中构建应用程序的镶边(主页,仪表板,登录名,常用系统/配置屏幕,主菜单),并能够在主要内容SL框架中打开现有的.aspx页面。
From what I see there is no way to do this. 从我看来,没有办法做到这一点。 I thought the Webbrowser control in SL4 would be the answer, but apparently that only works if your app is run out of browser.
我以为SL4中的Webbrowser控件将是答案,但是显然,仅当您的应用程序用完浏览器时,该控件才起作用。
So, what is my best recourse? 那么,我最好的办法是什么? It seems like I will have to create some type of .aspx page that hosts the .XAP and pass in the page I want it to load?
似乎我将不得不创建某种类型的.aspx页面来承载.XAP并传递我希望其加载的页面?
How would you gurus approach this? 您的上师将如何处理?
I would actually go the opposite route actually. 我实际上实际上会走相反的路线。 Intead of building the full dashboard, i would begin building the dashboard elements separately as much as you can.
为了构建完整的仪表板,我将尽可能多地开始分别构建仪表板元素。 This will give you time to refactor your individual applications one by one until you're ready to integrate them all.
这将使您有时间一个一个地重构各个应用程序,直到准备好将它们集成在一起为止。
One method we considered on my team was to build our SL rendering engine to render our aspx into SL controls, but when we saw the scope of that we decided it would be easier just to begin developing everything in SL from scratch. 我们团队考虑的一种方法是构建SL渲染引擎以将aspx渲染到SL控件中,但是当我们看到其范围时,我们决定从头开始在SL中开发所有内容会更容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.