Window

ウィンドウにタイトルを付けてみる。

Window Class (System.Windows) | Microsoft Docs

空のプロジェクト
空のプロジェクト

今回もあえて空のプロジェクト。

MainClass.cs
MainClass.cs

MainClass.csを追加。

WindowsBase
WindowsBase

PresentationCore
PresentationCore

PresentationFramework
PresentationFramework

System
System

この辺を追加するのは前回と一緒。

MainClass.csは、

WindowオブジェクトwindowのTitleプロパティにタイトル"Window"をセットする。
あとはapplication.Runにwindowを渡す。

実行すると、

タイトル"Window"
タイトル"Window"

タイトルが"Window"になってる。

Windows アプリケーション
Windows アプリケーション

コンソール アプリケーションになってるからWindows アプリケーションに。

これでOK
これでOK

これでOK。

Sample/wpf/Window/Window/src/Window at master · bg1bgst333/Sample · GitHub