1.定义外观颜色

[Appearance("FStatus", AppearanceItemType = "ViewItem", TargetItems = "*", Criteria = "FInventoryStatus =4", Context = "ListView", 
BackColor = "Red", FontColor = "Maroon", Priority = 2)]   

2.实现效果:

【原创】XAF根据状态自定义外观颜色

3.参考资料

Declare Conditional Appearance Rules in Code(在代码中声明条件外观规则):https://docs.devexpress.com/eXpressAppFramework/113371/concepts/extra-modules/conditional-appearance/declare-conditional-appearance-rules-in-code

 

相关文章:

  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案