Hello I am using a CombBoxField in a XamDataGrid. The combobox has a style set on it to set the foreground of the text to red if the object is inactive. This works great in the combobox. However, I can't figure out how to make the text, when not in edit mode to be red as well.
<igWPF:ComboBoxField Name="MyField" Label="Code}" ItemsSource="{igWPF:FieldBinding MyCodes}" DisplayMemberPath="CodeDescriptionText" DataType="{x:Type MyActiveInactiveCodes}" ComboBoxStyle="{StaticResource AllCodesComboBoxStyle}" />
There is an image available here. If you can't see the one I tried to put in here.
https://drive.google.com/file/d/0B5eEx2WSqAV3ejRFQ3pWZklkenc/view?usp=sharing
Thanks, Laura, I'm glad your issue is resolved now. Let me know if you need any further assistance on the matter.
Thank you for the help. It is working now.
Hi Laura,
I have prepared a small sample application where I believe your requirement is fulfilled. Basically, in addition to your AllCodesComboBoxStyle I created a style for the EditorStyle of the ComboBoxField's FieldSettings object which sets its "Foreground" property to "Red". Depending on your approach to conditionally apply the red foreground style to the field, you can use the whole style or the setter only.
If I have misunderstood your requirements, please provide more detailed information about the functionality you want to achieve.