Putting Icon on the Telerik Dock PaneHeader

5 posts, 0 answers
  1. Erik Damgaard
    Erik Damgaard avatar
    28 posts
    Member since:
    May 2010

    Posted 18 Jan 2011 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 18 Jan 2011 Link to this post

    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>>
  3. DevCraft banner
  4. Erik Damgaard
    Erik Damgaard avatar
    28 posts
    Member since:
    May 2010

    Posted 18 Jan 2011 Link to this post

    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


  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 19 Jan 2011 Link to this post

    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>>
  6. Erik Damgaard
    Erik Damgaard avatar
    28 posts
    Member since:
    May 2010

    Posted 20 Jan 2011 Link to this post

    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
Back to Top
DevCraft banner