本帖最后由 dupeng0811 于 2010-03-31 11:46:01 编辑

解决方案 »

  1.   

    很简单...App.xaml.cs        private void Application_Startup(object sender, StartupEventArgs e)
            {
                this.RootVisual = new MainPage();
            }红色部分改成相应页面的类名
      

  2.   


    弱弱的问一句,如果项目中的XAML在页面上我都想引用岂不是不可以了?这样就要再建一项目了?
      

  3.   

    目前我看到的做法是每个sliverlight页面一个项目在页面调用的时候给两个object标签对应相应的silverlight页面<body>
       <div id="silverlightControlHost">
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
                width="100%" height="30%">
                ...
            </object>
            <object data="data:application/x-silverlight-2," type="application/x-silverlight-2">
                ...
            </object>
            <iframe style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe>
        </div>
    </body>
      

  4.   

    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
           <param name="source" value="ClientBin/yapp.xap"/>
           <param name="initParams" value="1" />
            <param name="onerror" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="minRuntimeVersion" value="2.0.31005.0" />
            <param name="autoUpgrade" value="true" />
          
            </a>
           </object>
    private void Application_Startup(object sender, StartupEventArgs e)
            {
                if (e.InitParams.Count == 0)
                {
                    this.RootVisual = new StartPage();
                }
                else
                {}
              }
      

  5.   

    大哥 帮帮我哇 我是小弟 我是新人 没分 不能发帖 借贵宝地一用哦 
    编译器错误信息: CS0117: “System.Data.SqlClient.SqlDataAdapter”并不包含“ExecuteNonQuery”的定义
    不知道为什么 求高手指点
    还有SqlDataAdapter sda = new SqlDataAdapter("select Name from Lable where Partment='" + aa + "'", strcon);
    想把这个查询语句的结果返回存入一个字符数组里 怎么弄的啊 高手出来哦 
      

  6.   


    你应该使用 System.Data.SqlClient.SqlCommand