This question is locked. New answers and comments are not allowed.
Hello,
i've tried to build a calendar-app using RadCalendar and mark certain days as suggested here: http://www.telerik.com/help/windows-phone/radcalendar-features-specialdays.html
Problem is, that once the targeted OS is Windows Phone 8 the sample isn't working.
Screen: http://http//image.faltermayer.net/radcalendar.png
Saying something like: "Name SelectedDay isn't available in Namespace..."
Here is the code in the MainPage.xaml
However the same code is working as soon as WP7 is the targeted OS. Any ideas whats wrong with my code?
i've tried to build a calendar-app using RadCalendar and mark certain days as suggested here: http://www.telerik.com/help/windows-phone/radcalendar-features-specialdays.html
Problem is, that once the targeted OS is Windows Phone 8 the sample isn't working.
Screen: http://http//image.faltermayer.net/radcalendar.png
Saying something like: "Name SelectedDay isn't available in Namespace..."
Here is the code in the MainPage.xaml
public
class
SelectedDay : DataTemplateSelector
{
public
DataTemplate SpecialTemplate
{
get
;
set
;
}
public
override
DataTemplate SelectTemplate(
object
item, DependencyObject container)
{
CalendarButtonContentInfo info = item
as
CalendarButtonContentInfo;
CalendarButton button = container
as
CalendarButton;
if
(!button.IsFromCurrentView)
return
null
;
if
(info.Date ==
null
)
return
null
;
foreach
(var itemCheck
in
App.ViewModel.SelectedDates)
{
if
(itemCheck.Date == info.Date)
{
return
SpecialTemplate;
}
}
return
base
.SelectTemplate(item, container);
}
}
However the same code is working as soon as WP7 is the targeted OS. Any ideas whats wrong with my code?