LoginSignup
5
2

More than 1 year has passed since last update.

WPF CheckBoxのサイズ変更(スタイルで)

Posted at

WPFのデフォルトのチェックボックスのスタイルを変更して、サイズを変更する方法。

20211216fig1.png

デフォルトのスタイルのうち、

  • markGrid Width="24", Height="24"
  • optionMark Margin="4", Stretch="Uniform"
  • indeterminateMark Margin="4"

を変更すればOKです。

スタイルのコード全体は、次に掲載しておきました。

 備考

  • チェックとその四角の枠のサイズを変更したいだけなのに、適当なスタイルを見つけることができなかったんですよね。
  • スタイルの自由度が高いかわりに、スタイルのコードの量が多い。必要とする部分をみつけるのに、苦労する。
5
2
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
5
2