Hi,
How will I set default page in silverlight application.
Thanks, in advance
How to set default page in silvetlight
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Sep 18, 2011, 8:33 PM EDT
to set default page in silverlight app Goto file "app.xaml.cs" and in method Application_Startup() create object of page you want.....like this
this.RootVisual = new Mainpage();
hope this will help you...
Thanx,
Pravin
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 18, 2011, 11:31 PM EDT
open your App.xaml.cs file in the Silverlight project. In Application_Startup event handler, Change Code By Following
Thank you