关于Silverlight用户控件
我已经在silverlight导航页面项目中附加了silverlight用户控件(例如:FirstUserControl.xaml)。如果我想运行应用程序,我需要将添加的用户控件显示为启动页面。如何在silverlight中将用户控件设置为default页面关于Silverlight用户控件,silverlight,silverlight-4.0,Silverlight,Silverlight 4.0,我已经在silverlight导航页面项目中附加了silverlight用户控件(例如:FirstUserControl.xaml)。如果我想运行应用程序,我需要将添加的用户控件显示为启动页面。如何在silverlight中将用户控件设置为default页面 有谁能给我这个问题的解决方案吗?你可以在你的App.cs应用程序启动方法中设置它: private void Application_Startup(object sender, StartupEventArgs e) {
有谁能给我这个问题的解决方案吗?你可以在你的
App.cs
应用程序启动方法中设置它:
private void Application_Startup(object sender, StartupEventArgs e)
{
// Specify the main application UI
this.RootVisual = new FirstUserControl();
}
您可以在App.cs
应用程序启动
方法中进行设置:
private void Application_Startup(object sender, StartupEventArgs e)
{
// Specify the main application UI
this.RootVisual = new FirstUserControl();
}