MenuClick
private void MenuClick(object sender, RoutedEventArgs e)
{
Button ben = (Button)e.OriginalSource;
Type type = this.GetType();
Assembly assembly = type.Assembly;
Page page = (Page)assembly.CreateInstance(type.Namespace + "." + ben.Content);
this.ContentControlMainPage.Content = new Frame() { Content = page };
}
网友评论