This question is locked. New answers and comments are not allowed.
Hi
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 http://docs.telerik.com/windows-universal/controls/radloopinglist/loopinglist-getting-started
)
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <telerikLoopingList:RadLoopingList x:Name="loopingList"/></Grid>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}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <telerikLoopingList:RadLoopingList x:Name="loopingList" Grid.Column="1"/> </Grid>
Any pointers appreciated!