Icons on RadDocumentPanes

2 posts, 0 answers
  1. Terry
    Terry avatar
    157 posts
    Member since:
    Jul 2009

    Posted 11 Mar 2010 Link to this post


    I'm trying to programatically add an icons to RadDocumentPanes.  I found some code in this forum that I adapted as foilows, but I see no icon.  I do see some of the text.  What am I missing?


                    StackPanel stackPanel = new StackPanel() { Orientation = Orientation.Horizontal };  
                    Image image = new Image()  
                    {  
                        Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("images/Icon.jpg", UriKind.Relative))  
                    };  
                    stackPanel.Children.Add(image);  
                    TextBlock textBlock = new TextBlock() { Text = "Chart", Margin = new Thickness(3, 0, 0, 0) };  
                    stackPanel.Children.Add(textBlock);  
                    pane.Header = stackPanel;   


  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 16 Mar 2010 Link to this post

    Hi Terry,

    Thank you for contacting us.

    Please find the attached file in which I used your code snippet to customize the header of a Pane. Everything seems to work as expected.
    If you still experience any difficulties could you please send us a sample running project which we can test here locally. In that way we will be able to assist you in the best manner.

    If you have further questions please feel free to contact us again.

    Kind regards,
    Konstantina
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top