Hello,
Using the solution I suggeste in this post: http://www.devexpress.com/Support/Center/Question/Details/Q428449, I encountered a problem calculating the desired height of the grid that I was unable to solve.
Please see attached file for sample.
In this sample there is a LookUpEdit that displays a list of Person objects. At this point, the height of the popup is calculated correctly and three rows are visible. After the the popup is open for the first time, click on the toggle button. This changes the items to be displayed in the popup. Once again, opening the popup shows the current height, displaying the only row in the collection.
However, clicking on the toggle button again, changing again the ItemsSource, doesn't change the height of the popup, and it remain in the previous height. I noticed, that for some reason, the DesiredSize of the grid retain the previous values (when it displayed a single row).
I tried calling grid.Measure, hoping it will calculate the desired size, but it didn't work. Calling InvalidateMeasure, InvalidateArrange and\or UpdateLayout had no effect as well.
Can you help finding out what is wrong with my code?
Thanks,
Shahaf.