Change color to custom descriptions

3 posts, 1 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post

    Hello
    I'm trying to create custom backgrounds for appointments.
    The code is used to add:

    Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(23, "Orange", Color.Orange, Color.Orange)))
    Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(24, "Yellow", Color.Gold, Color.Gold)))
    Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(25, "Green", Color.YellowGreen, Color.YellowGreen)))

    The problem is that the text of the description and the location is the same color. Deputy image to view
    http://img211.imageshack.us/img211/2582/examplerz.png


    Is there a way to customize the text of the description and the location?
    Deputy image to show how I want.
    http://img825.imageshack.us/img825/1968/app1z.png

    I visited the references page but I do not go out of doubt ( http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-working-with-appointments.html )

    I'm using Visual Basic.net 2012 Framworks 4.5 whith telerik Q1 2013
    thanks
  2. Answer
    Michael
    Michael avatar
    5 posts
    Member since:
    Mar 2013

    Posted 25 Apr 2013 Link to this post

    Solved 

    Me.RadScheduler1.Backgrounds.Add((New AppointmentBackgroundInfo(25, "Green", Color.YellowGreen, Color.YellowGreen, Color.white, Color.white
    )))



    I have added ",  Color.white, Color.white"


    :)

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 30 Apr 2013 Link to this post

    Hi Michael,

    I am that that you have found the solution to your case. Here is the constructor of the AppointmentBackgroundInfo class if someone needs it in future:
    /// <summary>
    /// Initializes a new instance of the <see cref="AppointmentBackgroundInfo"/> class with a linear gradient.
    /// </summary>
    /// <param name="id">The id.</param>
    /// <param name="displayName">The display name.</param>
    /// <param name="color">The first gradient color.</param>
    /// <param name="color2">The second gradient color.</param>
    /// <param name="foreColor">The fore color.</param>
    /// <param name="borderColor">The border color.</param>
    public AppointmentBackgroundInfo(int id, string displayName, Color color, Color color2, Color foreColor, Color borderColor)
     

    Regards,
    Stefan
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Back to Top