摘要:
1. App.xaml.cs页中定义全局的Grid对象例如:Grid rootGrid = new Grid();2. 将对象rootGrid添加到App.xaml.cs文件中的Application_Startup 方法中如: private void Application_Startup(object sender, StartupEventArgs e) { this.RootVisual = rootGrid; this.rootGrid.Children.Add(new Page()); }3.在App.xaml.cs中添加一个新方法如:public staitc void Red 阅读全文