Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
LargeIconTemplate
posted

hi

In Silverlight 4 Application, how can i set LargeIconTemplate of OutlookBarGroup to BitmapImage in Code?

Thanks

Parents
No Data
Reply
  • 3071
    posted

    Hi,
    You can create a data template from code:
    dt = (DataTemplate)XamlReader.Load(
      @"<DataTemplate
      xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"">
      <Image Source=""/Silverlight102;component/LargeImage.png""/>
      </DataTemplate>"
    );
    outlookBar.Groups[0].LargeIconTemplate = dt;
    Regards,
    Marin

Children