views:

15

answers:

1

The below is an image of a listbox with the listbox items present in it : I want the scrollbar of a listbox to be aligned on left side

alt text

Edit After Hans answered : I tried what Hans said in my previous code was :

<ScrollViewer x:Name="ScrollViewer" TabNavigation="{TemplateBinding TabNavigation}"  FlowDirection="RightToLeft">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ItemsPresenter Grid.Column="0"  />
                    </Grid>

But as my ItemsPresenter was a child of ScrollViewer, so its FlowDirection property also get changed to RightToLeft which i din't want.So to resolve this I just gaved value LeftToRight to its property.

New Edit :

<ScrollViewer x:Name="ScrollViewer" TabNavigation="{TemplateBinding TabNavigation}"  FlowDirection="RightToLeft">
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ItemsPresenter Grid.Column="0" FlowDirection="LeftToRight" />
                    </Grid>
                </ScrollViewer>
+1  A: 

You could set the FlowDirection property to RightToLeft.

Hans Passant