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
739
Applying Style Programmatically
posted

Hello Guys,

 We ve been developing windows application in .Net 2005 using infragistics components vol 3. We ve created own style, i want to apply those style programmatically to my application.Is that possible to apply via programmatically.

 

Thanks in Adavance

Maguesh 

 

Parents
  • 1922
    posted

    Hi, you have to to call the Load method of the Stylemanager to load a style library:

    static void Main()
    {
    Infragistics.Win.AppStyling.StyleManager.Load("StyleLibrary.isl");
    Application.Run(new Form1());
    }

    In order to change the assigned Library for a control at runtime, you have to set the StyleSetName property:

    this.ultraMonthViewSingle.StyleSetName = "StyleSetBlue";

    You can find further information on that topic <a href="http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Win_Loading_a_StyleLibrary.html">here</a>

Reply Children