【原创】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
我是一个爱笑,认真记录每一天进步的博主.
转载请注明出处,商用请征得作者本人同意,谢谢!!!