Hello,maybe that's a very simple question but I don't know how to retrieve the default values of an appearance.I have an ultraCalendarInfo, ultraCalendarLook and ultraCalendarDayView and want to alter the AppointmentAppearance.FontData by using the FontDialog.I start my programm with the appearance's default values. Then I want to alter only the FontSize.When popping up the FontDialog, it would be very nice to see the FontName, FontStyle, so I only need to alter the Size and all the other properties stay the same.I know how to reset the values, but that's not what I need.Thanks for your help,migeold.
UltraCalendarLook exposes a ResolveAppointmentAppearance method, you can use this to determine the actual appearance values. The third overload has a parameter named 'completelyResolve', which you would pass as true.
Thank you very much for your help!Please, I need further assistance, because I don't know how to use this method.
I have this code:
Infragistics.Win.AppearanceData appearance;Infragistics.Win.AppearancePropFlags requestedPropFlags = Infragistics.Win.AppearancePropFlags.FontData;Infragistics.Win.AppearanceData appearanceDefault;
this.ultraCalendarLook1.ResolveAppointmentAppearance(this.ultraDayView1, this.ultraCalendarInfo1.Appointments[0], ref appearance, ref requestedPropFlags, false, ref appearanceDefault, true);
First, I don't know with which values I should initialize the ref parameters appearance and appearanceDefault.
Second, I don't know the first parameter the method accepcts. What is the UltraScheduleControlBase-derived control in my case?
Could you give an example how I should use this method, please?
Thank you very much,migeold.