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

DatePicker not picking up correct foreground?

5 Answers 107 Views
DatePicker and DateSelector
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 02 May 2011, 04:26 AM
Hi there,

When I add a DatePicker to my page it doesnt seem to get the right Foreground styling applied for some reason.

I am new to the controls so might be doing something wrong. But cant see where i am messing it up.

Thanks. 

5 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 04 May 2011, 12:42 PM
Hello Chris,

Thanks for contacting us and for the provided screenshot.

We would like to ask you for some further details on the case since, based on the screenshot only, we cannot determine the reason for the undesired appearance.

Could you please prepare a sample App that simulates the behavior and send it to us so that we can directly see what goes wrong.

Note that you will have to open a new support ticktet in order to be able to attach your project.

Thanks for your time.

Kind regards,
Deyan
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
Chris
Top achievements
Rank 1
answered on 06 May 2011, 08:13 AM
Thanks,

I have narrowed this down and can repro this.   It seems to have something to do with the use of the SilverLight toolkit for Windows Phone 7 and the use of the transitions they provide.

Using this combination below causes the issue:

//RootFrame = new PhoneApplicationFrame();

RootFrame =

 

new TransitionFrame();

 

 

 


If i remove the use of their frame, the control is styled correctly:

RootFrame =

 

new PhoneApplicationFrame();

 

 

 

 

//RootFrame = new TransitionFrame();

 

 


You can get the Silverlight toolkit from here: http://silverlight.codeplex.com/

Do you know why this might be the case?   It seems strange that these two control sets wont play nicely together.

Thanks,

Chris.
0
Deyan
Telerik team
answered on 12 May 2011, 01:32 PM
Hello Chris,

Thanks for writing back and excuse us for the delay with our answer.

Our date & time picker controls do not define the foreground of the looping items explicitly. It is inherited from the foreground of the page. It seems that the application frame from the Silverlight Toolkit explicitly sets its foreground which causes the undesired behavior that you experience.

Since we consider the approach of not explicitly setting foreground the correct one we have not defined it in our style for the control.

If the Silverlight Toolkit's application frame overrides the default foreground, you should change this behavior in order for the RadDate-/TimePicker to work correctly.

I hope this is helpful.

Do not hesitate to get back to us in case you have further questions.

All the best,
Deyan
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
Maciej
Top achievements
Rank 1
answered on 15 Jul 2011, 08:21 PM
Hi there,

so there is no workaround for this problem?

I want to use both Page Transitions by Ms Silverlight Toolkit and your super fast RadDatePicker. I deeply want to avoid situation when I will be pushed to choose between your date picker and page transitions by Ms toolkit.

All suggestions will be appreciated.

Thank you.

Best regards,

Maciej
0
Deyan
Telerik team
answered on 20 Jul 2011, 02:24 PM
Hello Maciej,

Thanks for writing.

Why don't you try using our transitions provided by the RadPhoneApplicationFrame control?

You can read more about this control here:

RadPhoneApplicationFrame Overview

Do not hesitate to get back to us in case you have further questions or need assistance.

All the best,
Deyan
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
DatePicker and DateSelector
Asked by
Chris
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Chris
Top achievements
Rank 1
Maciej
Top achievements
Rank 1
Share this question
or