5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Last updated at Posted at 2021-12-17

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?