I have some issue and I'll appreciate any help on it!
I have a window with dynamic count of listboxes. MVVM was used. For listbox and it's functionality a usercontrol with viewModel was created. So when window is creating, I create my specific count of userControls in the constructor of the window. And actually the problem. Listbox has it's MaxWidth=350. And each listboxItem styled with buttons in the end. When names are short - everything OK and user can see buttons in the listbox exactly after window was loaded. But if names are too long, the listBox creates a horizontal scrollBar because of MaxWidth=350 (expected behavior.) So once the form is loaded, it seems like the buttons were not created in some listBoxes (see image2:)Image2: scrollBar appeared and buttons are not visible So the question is: how can I programmatically move scrollbar before the window will be shown? Image 3 shows what I need, and image 2 shows the current view of the listbox. Needed result after loading the window Do you know how to move scrollBar to the end?