Silverlight – Dynamic Page load

Silverlight에서 네비게이션(메뉴에 따른 페이지 호출?)을 작성하기 위해 넘겨온 값에 따라 시작되는 비주얼을 지정하면 된다.

   

그를 위해 다음과 같은 코드가 필요하다.

 

Private void Application_Startup(object sender, StartupEventArgs e)

{

String machineid = e.InitParams["machineid"];

this.RootVisual = new Page(machineid);

}

'Development > .NET' 카테고리의 다른 글

C# : Unit Class - File Size  (0) 2009.05.14
Silverlight – DispatcherTimer , Clock  (0) 2009.05.12
Silverlight – Host Settings  (0) 2009.05.10
Silverlight OpenFileDialog  (0) 2009.05.07
Silverlight - Access HTML document  (0) 2009.05.07