Windows Forms
.NET Framework1.0 のころからある古き良きフレームワーク
• デザイナーで直感的に画面の作成が可能
• .NET 6 向けのデザイナーは現在プレビュー
• State of the Windows Forms Designer for .NET Applications - .NET Blog (microsoft.com)
• .NET に移植後も改善が続いてる
• dotnet/winforms: Windows Forms is a .NET UI framework for building Windows desktop applications.
(github.com)
• シンプルな画面を作るには直感的でわかりやすい
• HighDPI/PerMonitorDPI 対応にやや難あり
• 以下のような複雑なレイアウトのリストを作るのは大変
まとめ
a
Windows
OS の API
アプリケーション
.NETの API
ユーザー インターフェース
ロジック
Win Forms WPF MAUI Win UI
Win App SDK
一番困ることが少ない 今後注力される
クロスプラットフォーム
であれば候補に
なるべく見た目とロジックを分離して作って UI フレームワークの
変化に対応可能にしておこう
30.
参考ドキュメント
• Windows Forms
•https://docs.microsoft.com/ja-jp/dotnet/desktop/winforms/?view=netdesktop-6.0
• WPF
• https://docs.microsoft.com/ja-jp/dotnet/desktop/wpf/?view=netdesktop-6.0
• MAUI
• https://docs.microsoft.com/ja-jp/dotnet/maui/
• Windows App SDK
• https://docs.microsoft.com/ja-jp/windows/apps/windows-app-sdk/