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

RadTileViewItem Style

3 Answers 124 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Rav
Top achievements
Rank 2
Rav asked on 14 Nov 2009, 04:29 PM
Hi

Are we able to programmatically apply a style to a dynamically created RadTileViewItem? Specifically I would like to change the background colours of the headers. What is the template/parameters for the style?

Regards

Rav

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 17 Nov 2009, 11:39 AM
Hello Rav,

There is currently no property of the RadTileViewItem control that fascilitates easily chaging the header background. We will add such a property as soon as our schedule allows us to, hopefully for the upcoming service pack.

So, at the moment the only way to cutomize the header background is to edit the control template. The easiest way to customize the header at runtime would be to have a style (in XAML) specifying the modified control template in the resources of your page/application, get a reference to that resource, and set the style to the TileViewItem at the moment you need to.

You may find the following resources useful:
http://betaforums.silverlight.net/forums/p/115084/264065.aspx
http://forums.silverlight.net/forums/t/22159.aspx
http://blogs.microsoft.co.il/blogs/alex_golesh/archive/2008/09/09/quick-silverlight-tip-define-control-style-dynamically.aspx

I hope I was able to help. Please let me know if you have any other questions.

All the best,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rav
Top achievements
Rank 2
answered on 17 Nov 2009, 12:21 PM
Hi Tihomir

Thanks for the reply, and yes that is the solution I'm looking for, but I would like to know the default control template XAML that is used by the RadTileViewItem so that I can appropriately modify it.

Regards

Rav
0
Tihomir Petkov
Telerik team
answered on 17 Nov 2009, 12:46 PM
Hello Rav,

You can edit the default template of the control via the standard way in MS Expression Blend (right click->Edit template->Edit a copy). I created a sample project which has the the template of the TileViewItem already extracted. Let me know if you have any dificulties with that.

All the best,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TileView
Asked by
Rav
Top achievements
Rank 2
Answers by
Tihomir Petkov
Telerik team
Rav
Top achievements
Rank 2
Share this question
or