XaeroDegreaz
Topic Author
Posts: 29
Joined: 26 Nov 2013, 04:47

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

14 Mar 2017, 07:18

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.
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

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

15 Mar 2017, 20:25

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.
 
XaeroDegreaz
Topic Author
Posts: 29
Joined: 26 Nov 2013, 04:47

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

16 Mar 2017, 01:19

Clicking your link produces a 403 for me.
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

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

16 Mar 2017, 10:47

I forgot de http in front of the address... the link is fixed now: bugtracker.

Who is online

Users browsing this forum: No registered users and 1 guest