Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > Inhereting CalendarButtonContent

Answered Inhereting CalendarButtonContent

Feed from this thread
  • Kasper Schou avatar

    Posted on Jan 28, 2011 (permalink)

    Hi Telerik,

    This is somewhat a spinoff of my previous thread.

    My question here is whether or not it is possible to inherit from the CalendarButtonContent and having RadCalendar use this instead?, i.e. adding a Color property that could be set in code behind when selecting template, then binding to this Color property in the template definition in xaml?

    Again, this is a simple example and my real case scenario contains many properties, hence having different templates for each combination of custom properties is not a desired approach.

    Any advice what be appriciated :)

    Best regards,
    Kasper Schou

    Reply

  • Answer Kaloyan Kaloyan admin's avatar

    Posted on Jan 31, 2011 (permalink)

    Hello Kasper Schou,

    There is no way to plug your custom CalendarButton into the RadCalendar itself. You may consider creating attached properties instead.

    All the best,
    Kaloyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>

    Reply

  • Kasper Schou avatar

    Posted on Apr 7, 2011 (permalink)

    Hi,

    I know I have already accepted answer for this, but I am having a hard time getting attached properties to work.. This might not be for you guys to handle, more of a general programming experience lack on my side, but if you have any examples on how to attached a custom property to the CalendarButtonContent I would be very happy.

    Best regards,
    Kasper

    Reply

  • Kaloyan Kaloyan admin's avatar

    Posted on Apr 12, 2011 (permalink)

    Hi Kasper Schou,

    Find the attached sample project It exposes a custom attached project that is using as a proxy channel between the actual template and a custom object.

    Best wishes,
    Kaloyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Attached files

    Reply

  • Kasper Schou avatar

    Posted on Apr 15, 2011 (permalink)

    Hi Kaloyan,

    Your example has helped me create a very good implementation of my issue, narrowing it down to only a few templates and instead attaching colors and so on.

    Thank you for the great support even though it was not an issue directly against your component. I'm very pleased we choose Telerik :)

    Best regards,
    Kasper Schou

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Calendar > Inhereting CalendarButtonContent
Related resources for "Inhereting CalendarButtonContent"

WPF Calendar Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]