This is a migrated thread and some comments may be shown as answers.

Inhereting CalendarButtonContent

4 Answers 90 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kasper Schou
Top achievements
Rank 1
Kasper Schou asked on 28 Jan 2011, 10:32 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Kaloyan
Telerik team
answered on 31 Jan 2011, 01:54 PM
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>>
0
Kasper Schou
Top achievements
Rank 1
answered on 07 Apr 2011, 10:14 PM
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
0
Kaloyan
Telerik team
answered on 12 Apr 2011, 03:15 PM
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
0
Kasper Schou
Top achievements
Rank 1
answered on 15 Apr 2011, 12:57 PM
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
Tags
Calendar
Asked by
Kasper Schou
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Kasper Schou
Top achievements
Rank 1
Share this question
or