Hi All,
Normally we can set icon for outlookbargroup in xaml like this:
<ig:OutlookBarGroup.LargeIconTemplate>
<DataTemplate>
<Image Source="....." />
</DataTemplate>
</ig:OutlookBarGroup.LargeIconTemplate>
Thanks for your kind answer. I resolved my problem as you suggested.
Here them sample code for everyone who have the need like me:
();
InvtGroup.Header = r.ModCatDescr;
InvtGroup.Key = r.catID;
@"<DataTemplate
xmlns=""http://schemas.microsoft.com/client/2007"">
<Image Source=""Images/grp"
@".png"" />
</DataTemplate>"
;
Thanks
Han
Hello hanntd,
tell me if i am wrong but you are trying to load DataTemplate from code behind, is that correct? On the following link http://stackoverflow.com/questions/59451/creating-a-silverlight-datatemplate-in-code you could see an example of how to create DataTemplate in runtime. If you still have questions , please feel free to share them!
Regards,
Nikola.