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

Sliding behavior of RadSlideHubTiles

4 Answers 137 Views
HubTile
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
GJ Kuz
Top achievements
Rank 1
GJ Kuz asked on 01 May 2012, 12:32 AM
Telerik Team,

I have 6 radSildeHubTiles on a page and noticed that they all slide at the same time. Is there any way to make the slide behavior random like the way you see with the hubtiles on the People Hub on the phone? The Silverlight toolkit hubtile's slide behavior is similar to the people hub.

thanks,
Gilles

4 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 01 May 2012, 11:22 AM
Hi Gilles,

Thank you for contacting us. You can control when a RadSlideHubTile slides by setting its UpdateInterval property. The best would be if your item ViewModel has an UpdateInterval property which is bound to RadSlideHubTile's UpdateInterval. Something similar to the code bellow:

<ItemsControl x:Name="itemsControl1" ItemsSource="{Binding Images}">
    <ItemsControl.ItemTemplate>
        <DataTemplate>
            <Grid Width="200" Height="200">
                <primitives:RadSlideHubTile UpdateInterval="{Binding UpdateInterval}">
                    <primitives:RadSlideHubTile.Title>
                        <TextBlock Text="{Binding }" FontSize="8" />
                    </primitives:RadSlideHubTile.Title>
                    <primitives:RadSlideHubTile.Picture>
                        <Image Source="{Binding Source}" Stretch="UniformToFill" />
                    </primitives:RadSlideHubTile.Picture>
                </primitives:RadSlideHubTile>
            </Grid>
        </DataTemplate>
    </ItemsControl.ItemTemplate>
    <ItemsControl.ItemsPanel>
        <ItemsPanelTemplate>
            <primitives:RadWrapPanel />
        </ItemsPanelTemplate>
    </ItemsControl.ItemsPanel>
</ItemsControl>


Please take a look at the attached project for further reference and let me know if you find anything unclear. I'd be glad to assist you  All the best,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
GJ Kuz
Top achievements
Rank 1
answered on 01 May 2012, 02:35 PM
You guys rock!!! Thank you Kiril. Worked like a charm.
thanks,
Gilles
0
GJ Kuz
Top achievements
Rank 1
answered on 01 May 2012, 06:56 PM
Kiril,

I have another question. I want to increase the font size of the title. It looks like changing the FontSize to a higher value has no effect. I tried your sample too. Could you please help?

<telerikPrimitives:RadSlideHubTile.Title>
      <TextBlock Text="{Binding Title}" FontSize="18" FontWeight="Bold" />
</telerikPrimitives:RadSlideHubTile.Title>


thanks,
Gilles
0
GJ Kuz
Top achievements
Rank 1
answered on 01 May 2012, 07:05 PM
Never mind. Setting the font at the global level worked.
<telerikPrimitives:RadSlideHubTile FontSize="30" UpdateInterval="{Binding UpdateInterval}">
    <telerikPrimitives:RadSlideHubTile.Title>
        <TextBlock Text="{Binding Title}" FontSize="30" FontWeight="Bold" />
    </telerikPrimitives:RadSlideHubTile.Title>
   <telerikPrimitives:RadSlideHubTile.Picture>
       <Image Source="{Binding Source}" Stretch="UniformToFill" />
   </telerikPrimitives:RadSlideHubTile.Picture>
</telerikPrimitives:RadSlideHubTile>

thanks,
Gilles
Tags
HubTile
Asked by
GJ Kuz
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
GJ Kuz
Top achievements
Rank 1
Share this question
or