2011年4月7日

silverlight窗体的跳转和页面的跳转

摘要: silverlight中页面的跳转有点麻烦,需要修改app.xaml中的方法。第一步:添加全局变量:Grid rootgrid=new Grid();第二步:修改Application_Startup方法改为this.rootVisual=rootgrid;rootgird.Children.add(new MainPage());第三步:写一个方法如下public void RedirectTo(UserControl usercontrol) { App app = (App)Application.Current; app.rootGrid.Children.Clear(); app.r 阅读全文

posted @ 2011-04-07 21:23 liugege 阅读(2108) 评论(1) 推荐(1) 编辑

导航