C#/WPF - Picturebox like control?

后端 未结 2 2243
一生所求
一生所求 2021-01-16 17:47

Does a picturebox like control exist in WPF? I want a control that I can easily change/retrieve the backcolor of.

2条回答
  •  天命终不由人
    2021-01-16 18:05

    You can use rectangle control & set the Fill property with the respective color. For click event, you can add MouseDownEvent handler to rectangle.

提交回复
热议问题