[WPF] Windowサイズを変更不可にする

[WPF] Windowサイズを変更不可にする

Windowサイズを変更させたくない場合、次のように赤文字列をXAMLに記述します。

<Window x:Class=”Window2″
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml
    Title=”Window2″ Height=”300″ Width=”300″
    ResizeMode=”NoResize”>

ただ、右上に「☓」が出たままですが。。。