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

[Solved] TitleTemplate

3 Answers 111 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.
bento
Top achievements
Rank 2
bento asked on 19 Oct 2013, 12:14 PM
Latest Q3 2013, I can use and display Title of RadSlideHubTile using 

<telerikPrimitives:RadSlideHubTile Title="{Binding Name}" />

But cannot use TitleTemplate, it is not display anything. Can you try it ?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Oct 2013, 08:42 AM
Hello Benyamin,

Thank you for writing.

I'm not sure I understand exactly what you need to achieve. The TitleTemplate is a property of type DataTemplate which allows you to define a template for the Title. Here's an example. If you want to display an icon next to the title, you can define the following TitleTemplate:

<telerikPrimitives:RadSlideHubTile Title="Me">
    <telerikPrimitives:RadSlideHubTile.TitleTemplate>
        <DataTemplate>
            <StackPanel VerticalAlignment="Bottom" Orientation="Horizontal">
                <Image Stretch="None" Source="Images/Stopwatch.png"/>
                <TextBlock Margin="12,0,0,0" Text="{Binding}" />
            </StackPanel>
        </DataTemplate>
    </telerikPrimitives:RadSlideHubTile.TitleTemplate>
</telerikPrimitives:RadSlideHubTile>

If you have the correct image in the Images folder, you will get the result from the attached image.

If you need further assistance, don't hesitate to write us back.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
bento
Top achievements
Rank 2
answered on 24 Oct 2013, 02:22 PM
Hi Todor,

I attached a sample project on Support Ticket. 

Thanks.
0
Accepted
Todor
Telerik team
answered on 25 Oct 2013, 07:43 AM
Hi Benyamin,

I have responded to your support ticket.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
HubTile
Asked by
bento
Top achievements
Rank 2
Answers by
Todor
Telerik team
bento
Top achievements
Rank 2
Share this question
or