1.定义外观颜色
[Appearance("FStatus", AppearanceItemType = "ViewItem", TargetItems = "*", Criteria = "FInventoryStatus =4", Context = "ListView", BackColor = "Red", FontColor = "Maroon", Priority = 2)]
2.实现效果:
3.参考资料
Declare Conditional Appearance Rules in Code(在代码中声明条件外观规则):https://docs.devexpress.com/eXpressAppFramework/113371/concepts/extra-modules/conditional-appearance/declare-conditional-appearance-rules-in-code