2 posts, 0 answers
  1. Erik
    Erik avatar
    314 posts
    Member since:
    Feb 2008

    Posted 23 Feb 2012 Link to this post


    I'm having some xaml code which is using "RadUniformGrid" in a listbox.

    <ListBox x:Name="listBox1" Margin="5" HorizontalAlignment="Stretch" Height="600"
         ItemTemplate="{StaticResource AItemTemplate}" >
                <telerik:RadUniformGrid Columns="3" HorizontalAlignment="Left" VerticalAlignment="Top" />

    How can I make the columns auto fit the Width of the listbox? (taking in account a scrollbar)

    I can not find any in formation about RadUniformGrid.


  2. Yana
    Yana avatar
    4603 posts

    Posted 28 Feb 2012 Link to this post

    Hello Erik,

    Actually RadUniformGrid is intended only for internal use in various controls (for example RadScheduler) - it is not an official product in our portfolio.

    In your case you can try setting VeritcalAlignment and HorizontalAlignment properties of the UniformGrid to "Stretch":

    <ListBox x:Name="listBox1" Margin="5" HorizontalAlignment="Stretch" Height="600">
                <telerik:RadUniformGrid Columns="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top