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

1.定义外观颜色

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

2.实现效果:

【原创】XAF根据状态自定义外观颜色_第1张图片

3.参考资料

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

 

你可能感兴趣的:(【原创】XAF根据状态自定义外观颜色)