How to center RadLoopingList - HorizontalAlignment?

2 posts, 1 answers
  1. AS
    AS avatar
    14 posts
    Member since:
    Jan 2015

    Posted 30 May 2015 Link to this post


    I am struggling with what I know is a simple thing ... any advice is appreciated.

    I am trying to center the RadLoopingList in a grid, not the content in the list, but the full list itself.

    In a blank page, I have the following ... (using sample code from


    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
            <telerikLoopingList:RadLoopingList x:Name="loopingList"/>

     populated as ....

    loopingList.ItemsSource = Enumerable.Range(0,10).ToList();


    By default, the RadLoopingList is rendered left aligned to the grid ... How can I center it? HorizontalAlignment seems not to work.


    I have resorted to centering it with the Grid ...


    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            <telerikLoopingList:RadLoopingList x:Name="loopingList" Grid.Column="1"/>


     Any pointers appreciated!

  2. Answer
    Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1167 posts

    Posted 03 Jun 2015 Link to this post


    HorizontalAlignment is the property that you need in your case. It does not seems to work for you because the RadLoopingList is stretched all over the Grid and there is no way for it to be centered. In addition to the HorizontalAlignment property you can try setting a fixed size of the RadLoopingList itself. For example you can limit it to 90 pixels. Doing this will allow the HorizontalAlignment="Center" to take action.

    Please give this approach a try and let us know if you need any further assistance.

    Pavel R. Pavlov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top