SilverLight [SL]Open되는 페이지에 따라 다른 SL페이지 보여주기 백운성 2011. 6. 16. 11:56 xap가 호스팅되는 페이지에서 새 창을 띄울 자바스크립트와 Parameter를 설정 function OpenAdminPage() { window.open("B.aspx", "QMAPage", "resizable=yes,width=700,height=800,scrollbars=yes"); } ..... <%--초기화 App의 Application_Startup로 넘겨줄 파라미터--%> public partial class App : Application { .... // 파라메터에 따른 시작페이지 설정 private void Application_Startup(object sender, StartupEventArgs e) { if (e.InitParams["StartType"] == "A") this.RootVisual = new A(); else this.RootVisual = new B(); }... } // 버튼 누르면 새창을 띄우도록 private void button1_Click(object sender, RoutedEventArgs e) { HtmlPage.Window.Invoke("OpenAdminPage"); } SilverlightParamDemo.zip