Divelements Community
Customer discussion of all Divelements products

How to change the icon in the application button

Latest post 09-13-2007 23:00 by Brannon. 1 replies.
  • 08-29-2007 10:04

    • abmv
    • Top 500 Contributor
    • Joined on 08-25-2007
    • Posts 3

    How to change the icon in the application button

    The documentation mentions that the application image can be changed,the one shown at the top-left in the shiny orb.How can one achive this.

     

  • 09-13-2007 23:00 In reply to

    Re: How to change the icon in the application button

    Uses somethime like this in the constructor of your main RibbonWindow:

                Ribbon = new Ribbon();
                Stream stream = GetType().Module.Assembly.GetManifestResourceStream(GetType(), "Resources.mobiusStrip1BigShadow.png");
                BitmapImage bi = new BitmapImage();
                bi.BeginInit();
                bi.CacheOption = BitmapCacheOption.OnLoad;
                bi.StreamSource = stream;
                bi.EndInit();
                Ribbon.ApplicationButtonImage = bi;
                stream.Close();

Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems