2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

C# WPF ウィンドウの最大化無効オプション

Last updated at Posted at 2021-10-28

C# WPFのウインドウのリサイズ設定

C# WPF でウィンドウの最大化を無効にしたい。
ウィンドウのパラメータで簡単にコントロールできます。

リサイズに関するパラメータ

Window.ResizeMode

参考: https://docs.microsoft.com/ja-jp/dotnet/api/system.windows.window.resizemode?view=windowsdesktop-5.0

パラメータごとの例

Window.ResizeMode タイトルバー(該当部分) ボタン
CanResize (デフォルト) image.png [最小化]/[最大化]/[閉じる]
NoResize image.png [閉じる]
※最小化・最大化無効
CanMinimize image.png [最小化]/[閉じる]
※最大化無効
CanResizeWithGrip image.png [最小化]/[最大化]/[閉じる]
※ウィンドウ右下に resize grip 表示

以上

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?