Hello,
I am trying to access the editor used to display appointments on the timelineview for each appointment. The reason I am trying this is because i want to set the barheight for each appointment differently. I know it is possible, I just want to know which direction I should go (overwriting the creationFilters method or any other way).
Thank you!
Dear man.
How to get the owner id and the date corresponse to the TextUIElemnet of the TimeLineView after use creation filter (replace TimeSlotUIElement with TextUIElement).
Hi,
Well, all you have to do is place the TextUIElement in one of the ActivityAreaUIElement's child elements.
The TextUIElement itself does not contain info about the owner id or date, but going up his Parent elements you will reach one that does (for example the AppointmentUIElement).
Once you have the appointment element, you can easily convert it to an appointment and then get owner and date:
Infragistics.Win.UltraWinSchedule.Appointment appointment = element.GetContext(typeof(Infragistics.Win.UltraWinSchedule.Appointment)) as Infragistics.Win.UltraWinSchedule.Appointment;
// where element is the AppointmentUIElement you will reach while looping on the TextUIElement's parents
I hope that clears it up for you, remember you do not have to pass on the owner or the datetime to the TextUIElement, you can get that from it's Parent elements.
Cheers!