111,126
社区成员
发帖
与我相关
我的任务
分享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
};
}
}
} //[System.STAThreadAttribute()]
//[System.Diagnostics.DebuggerNonUserCodeAttribute()]
//public static void Main()
//{
// WpfApplication2.App app = new WpfApplication2.App();
// app.InitializeComponent();
// app.Run();
//}
[STAThread]
static void Main(string[] args)
{
var b=new Button
{
Content="Click me"
};
var w = new Window
{
Title = "Code Demo",
Content = b
};
}