Inhereting CalendarButtonContent

5 posts, 1 answers
  1. Kasper Schou
    Kasper Schou avatar
    6 posts
    Member since:
    May 2010

    Posted 28 Jan 2011 Link to this post

    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
  2. Answer
    Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 31 Jan 2011 Link to this post

    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>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kasper Schou
    Kasper Schou avatar
    21 posts
    Member since:
    Jul 2009

    Posted 07 Apr 2011 Link to this post

    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
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 12 Apr 2011 Link to this post

    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
  6. Kasper Schou
    Kasper Schou avatar
    21 posts
    Member since:
    Jul 2009

    Posted 15 Apr 2011 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready