使用WPF 中ListBox,点击ListBoxItem的时候,自定义它的背景色,曾经在网上找了一些方法,

不是很理想,后来在StackOverflow上找到了,贴出代码和效果图:

WPF中ListBox的项ListBoxItem被选中的时候Background变化

效果图:

WPF中ListBox的项ListBoxItem被选中的时候Background变化

 

相关文章:

  • 2021-08-14
  • 2021-12-31
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-08-22
  • 2021-10-23
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案