标签:
private void ButtonClick(object sender, RoutedEventArgs e)
{
Button cmd = (Button)e.OriginalSource;
Type type = this.GetType();
Assembly assembly = type.Assembly;
Window win = (Window)assembly.CreateInstance( type.Namespace + "." + cmd.Content);
win.ShowDialog();
}版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/ilipan/article/details/47808313