I'm writing a generic grid to be used by other people, and the styling of the rows needs to be injected in. What is the best way of doing this?
Ideally I want to do something like this:
<Style TargetType="{x:Type igDP:CellValuePresenter}" > <Setter property="THE CELL VALUE PRESENTER" value=" {Binding THE CELL VALUE PRESENTER, converter=xxx}" </Style>
So basically I want to take the existing cell value presenter, pass that to some service that was injected in, the service can do what it likes, such as set the background based on data item and field, and then it can return the cell value presenter. Is this possible?
Alternatively, is there a better way of doing this?
Thanks
any ideas?