LoginSignup
4
4

More than 5 years have passed since last update.

動的にボタンを生成しイメージを重ねて表示する方法(WPF)

Posted at

動的にボタンを生成しイメージを重ねて表示する方法(WPF)

経緯

仕事で動的にボタンを生成しイメージを重ねて表示しなければならなかったので、忘れる前に記載しとこうと思います。

コード

code_MakeButtons.PNG
code_PutOnImages01.PNG
code_PutOnImages02.PNG

結果

answer.PNG

解説

画像を重ねて表示したい場合Contentは複数設定が出来ないため、Backgroundに1つ、Contentに1つイメージを設定する事によってイメージを重ねて表示する事が出来ました。

 

4
4
2

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
4
4