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

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

 

posted @ 2020-05-09 14:48  笑笑未来  阅读(284)  评论(0编辑  收藏  举报