In xamDataGrid, can I get a column containing read-write properties to behave the same was as read-only properties do? I have set the field to be read-only, and whereas it's true that the value can't be edited, the field does appear differently when it has focus. This does not happen with fields based on read-only properties. Assuming it's relatively easy (i.e. without having to create templates for different states), how would I do that?
Thanks!
Brad.
Hello Brad,
Thank you for posting!
I have been looking into your post. If you would like the Field, that is read-only and the property is not, to be grayed out I can suggest setting the IsEnabled property of the Field itself. This way the cell of the Field would be appear with a gray background.
If this suggestion does not satisfy your need, would you please provide me with more details on what appearance the Field should have and how it should behave, when the IsReadOnly property is set and the property to which the Field is bound is not read-only?
Looking forward to hearing from you.
Setting "IsEnabled" to false definitely sets the behavior to what I'd like. However, I'm not so happy about the gray background and lighter text. I'm thinking maybe creating a "disabled" style that includes changing the background and text colors might fit the bill perfectly. If you get a chance to post that kind of thing before I get it working, that would be great!