10 Answers, 1 is accepted
The DisplayIndex property of a Tile is to be used to control its position among all tiles.
Regards,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Can I expand this further and ask how can I center the tiles on the screen. If I only have 4-6 tiles how can I have them arrange in the centre and not always from the left. Would this go against metro convention?
mike
I am trying to put all of the tiles on one row. This is the code that I have produced:
This results in really strange behavior of 2 1/4 tiles being displayed. If I click on the RadTileList, the outline shows that it is extended the length of the grid, the grid is also displayed the length, I am not sure why the rest of the items are not displayed.
<
UserControl
x:Class
=
"OfficeDashboard.Controls.Navigation"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"200"
d:DesignWidth
=
"1024"
>
<
UserControl.Resources
>
<
Style
TargetType
=
"TextBlock"
x:Key
=
"TileLabelStyle"
>
<
Setter
Property
=
"FontSize"
Value
=
"14"
/>
<
Setter
Property
=
"FontFamily"
Value
=
"Segoe UI"
/>
<
Setter
Property
=
"Margin"
Value
=
"10"
/>
<
Setter
Property
=
"Foreground"
Value
=
"White"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Bottom"
/>
</
Style
>
</
UserControl.Resources
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadTileList
x:Name
=
"RadTileList"
TileReorderMode
=
"None"
TilePlaceHolderSide
=
"130"
HorizontalContentAlignment
=
"Stretch"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
VerticalContentAlignment
=
"Stretch"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
telerik:Tile
Grid.Column
=
"0"
Background
=
"#FFD68A3A"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Customers"
>
<
Grid
>
<
Image
IsHitTestVisible
=
"True"
Source
=
"/OfficeDashboard;component/images/Customers.png"
/>
<
TextBlock
Text
=
"Customers"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"1"
Background
=
"#FF009600"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Orders"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Orders.png"
/>
<
TextBlock
Text
=
"Orders"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"2"
Background
=
"#FF008BD3"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Shipping"
>
<
Grid
>
<
Image
IsHitTestVisible
=
"True"
Source
=
"/OfficeDashboard;component/images/Shipping.png"
/>
<
TextBlock
Text
=
"Shipping"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"3"
Background
=
"#FFE4C100"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Tasks"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Tasks.png"
/>
<
TextBlock
Text
=
"Tasks"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"4"
Background
=
"#FF4477A4"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Reports"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Reports.png"
/>
<
TextBlock
Text
=
"Reports"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"5"
Background
=
"#FF00A8EC"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Charts"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Chart.png"
/>
<
TextBlock
Text
=
"Charts"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"6"
Background
=
"#FF009F3C"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Search"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Search.png"
/>
<
TextBlock
Text
=
"Search"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"7"
Background
=
"#FF6E6E6E"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Options"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Options.png"
/>
<
TextBlock
Text
=
"Options"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
<
telerik:Tile
Grid.Column
=
"8"
Background
=
"#FFDF0024"
TileType
=
"Single"
MouseDown
=
"Tile_MouseDown"
Tag
=
"Close"
>
<
Grid
>
<
Image
Source
=
"/OfficeDashboard;component/images/Close.png"
/>
<
TextBlock
Text
=
"Close"
Style
=
"{StaticResource TileLabelStyle}"
/>
</
Grid
>
</
telerik:Tile
>
</
Grid
>
</
telerik:RadTileList
>
</
Grid
>
</
UserControl
>
I am afraid that using a Grid in RadTileList could lead to some undesirable behavior.
The recommended approach would be to set a fixed height of RadTileList. Then you can use Tile's DisplayIndex property to set its position.
I hope this helps.
Yoan
Telerik
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 >>
I have problem with RadTileList. I would like to change Tile position. I tried to change style and I set all VerticalAlignment to Top but still Tile are center display. Do you have any idea?
I am afraid that this can not be achieved with the current version of RadTileList. We are aware of this limitation and we are working on some improvements of the RadTileList control. Please note that this is a complicated matter and we cannot commit to a certain time frame for the availability of these improvements.
We apologize for the inconvenience caused.
Regards,
Yoan
Telerik
I am writing just to let you know that with the release of Q3 2014 we introduced some changes for RadTileList mainly on the way groups are created and arranged. We added the functionality of modifying the vertical position of the tiles, the visibility of group header, their height, etc.
Check out this article for more information.
I do hope this change will make the experience of working with RadTileList better.
Regards,
Maya
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I have problem with last update Q3 2014. I have replaced all the libraries in the project, and now I have a problem with opening application, before everything was ok. I have error : ,,value can't be null " when I'm starting application, and this is everything what I have. In error detail I don't have information in which class is error and what is wrong.I would like to know if your update (Q3 2014) is compatible with previous version.
Would you run through this article to verify that the upgrade path is followed on your side ?
Regards,
Maya
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.