How can I get an image to show up in an Appointment's subject area? I need to have text, as well as an image in a certain location, is there anything that can get me close?
Hi,
I have set an image for the Appointment but what happens is it is shrinked very small. I have set like this,
appointment.Appearence.Image = myImage;
appointment.Appearence.ImageHAlign = HAlign.Right;
The image is actually a small color box. To overcome this i used "ImageBackground" and corresponding "ImageBackgroundStyle" but the style either streches fully or tiles and centers. I am not able to set this correctly.
Can you please help on this.
Aaron Glover said:Is there anyway I can set the "Appointment.Appearance.Image" without triggering a "data row modification"...
No; when you use the AllPropertiesMember, and any property of the Appointment changes, we update the data in the list source, which in most cases (certainly for a DataSet) results in a ListChanged event firing.
Aaron Glover said:Can I use a Creation or a Draw Filter to add an image to an appointment object based on a value in the appointments datarow object???
Yes; what I would recommend is to assign a generic image to the UltraCalendarLook.AppointmentAppearance.Image, then use the IUIElementCreationFilter interface to find the ImageUIElement that is a descendant of the AppointmentUIElement. You can get a reference to the Appointment using the UIElement's GetContext method (pass typeof(Appointment)), then once you have the image you want to display for that appointment, assign the Image property of the ImageUIElement to reference that instead of the value you assigned to the UltraCalendarLook.AppointmentAppearance.Image. You might have to manually dispose of these images, if you are creating instances in your creation filter implementation.
Aaron Glover said:Any samples of access the BindingListObject etc from an appointment object in a Creation or a draw filter?
No, but you basically enumerated everything properly herein in your bulleted list.
One thing to note is that if you set the UltraCalendarLook.AppointmentAppearance.Image property, every appointment displayed will have space carved out for an image. If this is unacceptable, you would have to assign an Appearance object to each Appointment's Appearance property; you could use the AppointmentDataInitialized event to do that.
I am binding my appointments to a dataset object and in particular am binding the "ALLPROPERTIES" binary field.
Is there anyway I can set the "Appointment.Appearance.Image" without triggering a "data row modification"...
I use a disconnected dataset model and if I set an image to 100 appointments (because for example the person arrived for their appointment) I don't want this to trigger an update.
Can I use a Creation or a Draw Filter to add an image to an appointment object based on a value in the appointments datarow object???
eg: When the Appointment object is being created/drawn do the following:
Is this possible?????
Any samples of access the BindingListObject etc from an appointment object in a Creation or a draw filter?
I am assuming I would need to create an image object using a CREATION FILTER.... at the same time i will need to adjust the RECT for the text UIELEMENTS??? is that correct????
Any help is always greatly appreciated! RegardsAaron
When I vertically align an image in an appointment, all the subject text of the appointment starts below the image. This creates a gap between the top of the appointment and the beginning of the subject text. This doesn't occur when using the middle or bottom alignment options; the image will flow correctly when anything other than the top (or default) options are used.
Is this a known issue, or is there something I'm overlooking?
See Appointment.Appearance.Image