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; |