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
333
lock private appointments from another calendars
posted

Hi,

i want to "hide" the subject and the description of specific appointments. In this case these are private appointments, which are displayed in other calendars as "busy".

My idea is an event, which will be raised before an appoitment is drawn.

Is there any possibility?

Changing the subject while loading from the database isn't really a solution, because the "private" flag is stored in the AllProperties byte array.

Greetings

Stephan

 

  • 333
    Offline posted

    I have found a "half solution", but it doesn't work. The text wasn't changed, only the rotation works... What's wrong?

     

    // <param name="parent">The UIElement-derived element whose child elements have been created.</param>
            public void AfterCreateChildElements(UIElement parent)
            {
                if (parent is Infragistics.Win.UltraWinSchedule.DayView.AppointmentUIElement)
                {
                    UIElement text = parent.GetDescendant(typeof(EditorWithTextDisplayTextUIElement));
                    if (text != null)
                    {
                        ((EditorWithTextDisplayTextUIElement)text).Text = "Privat";
                        ((EditorWithTextDisplayTextUIElement)text).Rotated = true;
                    }
                }
            }