in GUI Development by

i want to show the last item of a vertical list when the list is loaded. Using EnsureVisible() does not change anything. When do i have to call this method? Weather before or after InvalidateItems(), the list does not scroll.

Maybe the is another way, how to plot a list from back to front.

Kind Regards


1 Answer

0 votes

Hello Jonas,

EnsureVisible() is the right method to scroll the list to a desired item. If the number of list items changes, the right moment to invoke this method would be after the number has been changed. In case of InvalidateItems(), there should not be any dependency in the order in which the methods are invoked.

Without knowing your implementation it is difficult to deduce the cause of why it is not working. If you can't find the cause of the issue yourself, you can upload in this thread a small example project demonstrating it. We can then analyze it.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint