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

Icons on RadDocumentPanes

1 Answer 48 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 12 Mar 2010, 02:02 AM

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;   


1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 16 Mar 2010, 09:45 AM
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.
Tags
Docking
Asked by
Terry
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or