空白專案建立最基本WPF 視窗
- PresentationCore
- PresentationFramework
- System
- WindowsBase
須標記 [STAThread]
using System;
using System.Windows;
namespace ConsoleApp1
{
class Program
{
[STAThread]
public static void Main()
{
Window win = new Window();
win.Title = "Blank Window";
win.Show();
Application app = new Application();
app.Run();
}
}
留言
張貼留言