Strange space between tiles

3 posts, 0 answers
  1. Paweł
    Paweł avatar
    46 posts
    Member since:
    May 2013

    Posted 12 Aug 2013 Link to this post

    Hi.
    As i show on screen, i've changed tile style to look like buttons in my app. Problem is that there is so much space between tiles.. How can I change it? Style have as default 150x150 size and tiletype is single.

    XAML
     <Grid Grid.Row="0">
                <telerik:RadTileList Name="tileList" Margin="0">

                </telerik:RadTileList>
            </Grid>

    Screenshoot:
    http://snag.gy/mAiB4.jpg
  2. Paweł
    Paweł avatar
    46 posts
    Member since:
    May 2013

    Posted 13 Aug 2013 Link to this post

    And one more question. How can I change item adding priority? I'd like to add them like:
    0 1 2 3 4
    5 6 7 8 9

    Now it's added like:
    0 1 6 7
    2 3 8 9
    4 5 10 11
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 Aug 2013 Link to this post

    Hello Pawel,

    You can try setting VerticalAlignment of RadTileList to 'Top"for example. If the result is not what you are looking for, you can edit its template with Blend and modify it in the way you require it.
    Considering the second question, you can set DisplayIndex of the Tile. For example:

    XAML:
    <telerik:RadTileList x:Name="tileList" ItemsSource="12345678910" AutoGeneratingTile="tileList_AutoGeneratingTile" />
     
    Code-behind:
    private void tileList_AutoGeneratingTile(object sender, Telerik.Windows.Controls.AutoGeneratingTileEventArgs e)
            {
                e.Tile.DisplayIndex = int.Parse(e.Tile.Content.ToString());
            }


    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top