Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
关于Silverlight用户控件_Silverlight_Silverlight 4.0 - Fatal编程技术网

关于Silverlight用户控件

关于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) {

我已经在silverlight导航页面项目中附加了silverlight用户控件(例如:FirstUserControl.xaml)。如果我想运行应用程序,我需要将添加的用户控件显示为启动页面。如何在silverlight中将用户控件设置为default页面


有谁能给我这个问题的解决方案吗?

你可以在你的
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();
    }