?????????????????????WPF Style??????DEMO????????

??????????????????????

??????????в????

?????????WinForm????????

????????????????????

??????????Main???????Щ??????????????Application.run(???????????)?????

???????????WPF?????Main????????????????????????

????????????WPF????У??????Main???????

???????????????д????????

???????????????????£?

??????λSL?й????????У?????????App.cs???????дMain?????Application.run???????

??????????Winform???в????

[STAThread]
public static void Main()
{
WindowBase wb = new WindowBase();//????????Window??????????Window??????????????Щ.xaml???????????????????
Application app = new Application();//????new???????????????App?????????????Application??
app.MainWindow = wb;
//???????????
//??????
//wb.Show();
//app.Run();//??MainWindow??????????
//?????
app.Run(wb);//???????Window?????
}