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
205
redesign XamTreeGrid ColumnHeader
posted

hi

i want to design XamTreeGrid column header like this picture

thanks for your attention

Parents
  • 6365
    Verified Answer
    Offline posted

    Hello Behzad,

     

    Thank you for choosing Infragistics.

     

    I have been looking into your issue and I have prepared a sample application for you to test and see if the desired effect is achieved.

    I have created a FileNode class representing a single Node with possible sub nodes. In the SimpleDataSource class I have created a sample collection containing FileNodes and I have bound the DataSource property of the XamTreeGrid to this collection through the FileNodes property. I have defined a couple of styles in the grid's resources that target the LabelPresenter visual element and I have set it's Background property to a specific color. In the FieldLayouts of the XamTreeGrid I have explicitly set the LabelPresenterStyle property of each field to a style from the grid's resources.

     

    If you need any further assistance on this matter, please do not hesitate to ask.

    XamTreeGrid_FieldHeaderColoring.zip
Reply Children