开发者

Align Scrollbar to left of the Silverlight ListBox

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 http://www.freeimagehosting.net/uploads/231f3112d3.png

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>
                <开发者_如何学JAVA/ScrollViewer>


You could set the FlowDirection property to RightToLeft.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜