在Silverlight中启动页面 [英] Start Up Page in Silverlight

查看:57
本文介绍了在Silverlight中启动页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我需要在Silverlight中设置启动页面.在App.xaml.cs中,我已经设置了
Application_Startup中的起始页为
this.RootVisual = new SilverlightControl1();
但没有设置开始页面.任何人都可以告诉我如何在silverlight中设置启动页面.感谢Advance

Hai,

I need to set start Up Page in Silverlight.In App.xaml.cs,I have Set the
start page in Application_Startup as
this.RootVisual = new SilverlightControl1();
but the start page was not set.Can any one pls tell me how to set up start up page in silverlight.Thanks in Advance

推荐答案

在App中尝试以下代码具有StartUpUri属性的.xaml

Try the below code in App.xaml with StartUpUri attribute

<application x:class="My.App" xmlns:x="#unknown">
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="SilverlightControl.xaml"></application>


这篇关于在Silverlight中启动页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆