Page 1 of 1

ListBox with HorizontalAlignment set to "Stretch" moves list content left when pressing buttons

Posted: 14 Mar 2017, 07:18
by XaeroDegreaz
I have a TabControl with a Tabitem, as defined below:
<ListBox
    x:Name="KeyBindingsList"
    Height="Auto"
    HorizontalAlignment="Stretch"
    VerticalAlignment="Top"
    ScrollViewer.HorizontalScrollBarVisibility="Disabled">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <UniformGrid Columns="2">
                <Label Content="{Binding Path=Name}" VerticalAlignment="Center" />
                <Button Content="{Binding Path=PrimaryKeyName}" />
            </UniformGrid>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>
When pressing the Button, the ListBox content shifts to the left. It also happens when the width of the ListBox is the same size as the container.

Re: ListBox with HorizontalAlignment set to "Stretch" moves list content left when pressing buttons

Posted: 15 Mar 2017, 20:25
by sfernandez
I was able to reproduce it.
It seems a problem with the implementation of BrintIntoView for the focused element.

Please create a ticket in our bugtracker and we will try to fix it as soon as possible.

Re: ListBox with HorizontalAlignment set to "Stretch" moves list content left when pressing buttons

Posted: 16 Mar 2017, 01:19
by XaeroDegreaz
Clicking your link produces a 403 for me.

Re: ListBox with HorizontalAlignment set to "Stretch" moves list content left when pressing buttons

Posted: 16 Mar 2017, 10:47
by sfernandez
I forgot de http in front of the address... the link is fixed now: bugtracker.