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
1336
Incorrect Row Heights when not specifying Theme locally
posted

Hi,

Please find attached a simple project demonstrating strange behaviour with setting the "Generic" theme.

We have a base class that inherits from XamDataGrid.  In here I set the active theme in code and to keep it simple, bind to sample data for this demo.  I then use a copy of this new control within a window.

As you can see, the height of all the rows has become squashed, meaning you can't even see the headers.

I found that if I also set Theme="Generic" in the window in which my derived control is situated, all works ok.

I don't want to have to specify the theme on every instance of my control being used, I just want to set it in the base class so any changes here would apply globally.

Regards,

Dave

PentanaMockUI 2009-09-29.zip
Parents
  • 69686
    posted

    Hello Dave,

    I am assuming that the Initialized event is too early for this. You can try with the Loaded and FieldLayoutInitialized, which are fired after Initialized event and it should work correctly. I was able to reproduce only the header incorrect size and not the records incorrect size. Please try with these events and let us know if it solves this issue?

Reply Children