Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
715
Injecting styles into to the grid
posted

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

Parents
No Data
Reply Children
No Data