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

Putting Icon on the Telerik Dock PaneHeader

4 Answers 113 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Erik Damgaard
Top achievements
Rank 1
Erik Damgaard asked on 18 Jan 2011, 09:27 AM
Hello Admin,
Can we customize the default template of the Dock PaneHeader by putting a icon with the content.I saw one of your example related to TabControl, where you put images along with the content , here is the link http://demos.telerik.com/silverlight/#TabControl/TabStripOrientation .
I can achive this with the Dock PaneHeader in case of Static RadPanes.But when we add RadPanes dynamically , this is quite not possible for me. But we want this feature for our product . Please let me know how this can be achieved , or you are going to add this feature in your next coming version.So that i can implement this feature ASAP.Don't you think, this would be a good and interesting feature of adding icons to the Header and this will make the look and feel of the control  better.
I am waiting for your reply.

Thanks

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 18 Jan 2011, 12:08 PM
Hi Erik,

Thank you for contacting us.

You can refer to the following help article in which is explained how to put an Icon in the pane's Header: http://www.telerik.com/help/silverlight/raddocking-how-to-add-icon-pane-header.html
Then, you can set the HeaderTemplate property in code behind as follows:

RadPane pane1 = new RadPane();
pane1.HeaderTemplate = this.Resources["HeaderTemplate"] as DataTemplate;

Hope this helps. If you have further questions please let us know.

Kind regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Erik Damgaard
Top achievements
Rank 1
answered on 18 Jan 2011, 01:13 PM
Hi Konstantina ,
I was using this methodology to implement this feature. But this seems to work with only static image.
Please look at this line of code
<DataTemplate x:Key="HeaderTemplate">
       
<StackPanel Orientation="Horizontal">
           
<TextBlock Text="{Binding}"/>
           
<Image Source="Icon.jpg" Width="16" Height="16"/>
       
</StackPanel>
   
</DataTemplate>
Here the Icon is specified at the design time. But this doesn't work if I will set the Image source in the run time.In my application I want different icons for different  RadPanes.  I can attach a application, which i created couple of hours ago. Please provide me a Support Ticket so that I can show you the actual problem.

Thanks


0
Konstantina
Telerik team
answered on 19 Jan 2011, 10:12 AM
Hello Erik,

You can open a support ticket after you log in to your account. There you can attach the sample project.

Please let us know if you are experiencing any difficulties submitting a support ticket.

Kind regards,
Konstantina
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Erik Damgaard
Top achievements
Rank 1
answered on 20 Jan 2011, 01:18 PM
Hi Konstantina ,
I have opened a Support Ticket and sent the application as an attachment. I have no reply from your side till now. Please let me know about the solution , as I am looking forward for your reply ,so that We can move on.

Thanks
Tags
Docking
Asked by
Erik Damgaard
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Erik Damgaard
Top achievements
Rank 1
Share this question
or