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
270
Holiday in DayView has no image with Office2007 styling
posted

 

 

Using 2010.3 Infragistics version in day view Holiday object has no image (even if image is shown in MonthViewSingle) after StyleManager sets Office2007 styles.

 

        public Form1()

        {

            Infragistics.Win.AppStyling.StyleManager.Load(@"..\..\Office2007Black.isl");

            InitializeComponent();

            this.ultraCalendarInfo1.ActivateDay(DateTime.Today);            

 

            this.ultraCalendarInfo1.Holidays.Add(DateTime.Today, "1-st holiday");

            this.ultraCalendarInfo1.Holidays.Add(DateTime.Today.AddDays(2), "2-nd holiday");

 

            foreach (Holiday hol in this.ultraCalendarInfo1.GetDay(DateTime.Today, true).Holidays)

            {

                hol.Appearance.BackColor = Color.Gold;

                hol.Appearance.BackColor2 = Color.Gold;

                hol.Appearance.Image = Resource1.Note32;                

            }

        }

 

 

If I comment out this line:

 

//Infragistics.Win.AppStyling.StyleManager.Load(@"..\..\Office2007Black.isl");

 

ithen image is displayed in DayView.

 

How to work around this? How to display image in day view with Office2007 styles applied?

P.S. attaching a project to it.

 

 

holiday_image.zip
Parents
No Data
Reply
  • 69832
    Verified Answer
    Offline posted

    My guess is the ISL replaces the image. You can edit those files, so you might be able to remove the one line of XML that is causing the image to be overwritten.

Children
No Data