This is a migrated thread and some comments may be shown as answers.

Strange space between tiles

2 Answers 149 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 12 Aug 2013, 02:35 PM
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 Answers, 1 is accepted

Sort by
0
Paweł
Top achievements
Rank 1
answered on 13 Aug 2013, 09:59 AM
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
0
Maya
Telerik team
answered on 13 Aug 2013, 10:56 AM
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 >>
Tags
TileList
Asked by
Paweł
Top achievements
Rank 1
Answers by
Paweł
Top achievements
Rank 1
Maya
Telerik team
Share this question
or