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
1935
"Refresh" FieldLayouts
posted

I have two FieldLayouts in my XamDataGrid. These FieldLayouts use several converters to define colors of styles etc.

When I change the colors on run-time, I would like to update the colors in the XamDataGrid.

Is it possible to "refresh" the layouts, so that the converters are run again?

Parents
  • 4850
    Offline posted

    Hi Christian,

    Here is a set of steps that should work:

    1. Set the XamDataGrid's Template property to null
    2. Call UpdateLayout(). Note: this step might not be necessary.
    3. Call XamDataGrid's ClearValue(TemplateProperty).

    This should cause all the elements to get re-hydrated.

     

Reply Children