This question is locked. New answers and comments are not allowed.
I am trying to set up RadOutlookBarItems in the code behind. I want to add an icon to each section so far I have this:
It runs and the sections are there, but the icons are not. The icons are included in the project, What's the right way to do this?
Thanks
private void addOutlookBarSections()
{
Sections = new ObservableCollection<
RadOutlookBarItem
>();
RadOutlookBarItem projects = new RadOutlookBarItem();
projects.Header = "Projects";
BitmapImage projectsIcon = new BitmapImage(new Uri("media/images/project_24.png", UriKind.Relative));
projects.Icon = projectsIcon;
Sections.Add(projects);
RadOutlookBarItem clients = new RadOutlookBarItem();
clients.Header = "Clients";
BitmapImage clientsIcon = new BitmapImage(new Uri("media/images/person_24.png", UriKind.Relative));
clients.Icon = clientsIcon;
Sections.Add(clients);
}
It runs and the sections are there, but the icons are not. The icons are included in the project, What's the right way to do this?
Thanks