日期:2014-05-18 浏览次数:20773 次
namespace WpfApplication2 { /// <summary> /// MainWindow.xaml 的交互逻辑 /// </summary> public partial class MainWindow:Window { public MainWindow() { InitializeComponent(); } [STAThread] static void Main(string[] args) { var b=new Button { Content="Click me" }; var w = new Window { Title = "Code Demo", Content = b }; } } }