Hi,
I am using a custom Form instead of the default Appointment form. My Custom form has control(uSetColor) to select Color. Which when i select i want that particular appointment to be set with the Appointment bar color as what is selected in uSetColor control.
Have uploaded the snap shot.
Thanks,
Zalak
I'm having the same problem.using infragistics 2016.2 samples.UltraTimeLineView CS
using this piece of code:
DateTime dt1 = new DateTime(2017, 2, 27, 11, 00, 00); DateTime dt2 = new DateTime(2017, 2, 27, 14, 00, 00); Appointment a1 = new Appointment(dt1, dt2); a1.Subject = "Test Guy"; a1.BarColor = Color.Red; a1.Locked = true; a1.Appearance.BackColor = Color.Beige; a1.OwnerKey = "Andrew"; ultraCalendarInfo1.Appointments.Add(a1);
in the detail of the appointment the color is red.
in the overview it is all gray...
Please ehelp.
Hi Dimitar,
Sorry for the delayed response, but yes this helped a lot. Thank you very much!
Karthik Subramanian
Hello,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
Hi Karthik,
Thank you for the feedback.
What you could do is to use an overload of the Load method of the StyleManager, which give the style a name. After that this style will only be applied to controls whose StyleLibraryName property is the name of the style. I have attached my sample and it now applies the style only to the DayView in the main form and one of the UltraDateTimeEditors in the Custom Appointment Dialog, only if you create a new appointment and don’t edit existing one.
Another option would be in the AppStylist file to hover with the mouse over a control which you don’t want to have any style applied to it, then press “C” to open the control's options and in its properties window (bottom left) find its “ResolutionOrder” property. If you set it to “ControlOnly” the AppStylist settings won’t be applied for this control.
Please let me know if you have any additional questions.
This was perferct! Thanks for the tip on the ISL file as well, this will give me a lot more control over how everything appears on my controls.
I do have 1 question, I noticed that using the appstylist applies the styling to all infragistics controls. Is there any way to limit the appstylist to only a certain set of controls or 1 project. My application has around 30 other projects to which I do not wish to apply these style changes.
Thanks for all the help!
Karthik