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

DatePicker Styling - Exception with Expression Blend

3 Answers 58 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 28 May 2009, 07:55 AM
I would like to style and edit the control template of the RadDatePicker inside Expression Blend.
When I add a copy of either the control template or the style of it, i get the following exception (german error message):

"
An Exception was thrown.
StackTrace: Empty

Inner Exception: Der öffentliche Typ mit dem Namen "RadDatePicker" kann von dem Typverweis nicht gefunden werden
XamlParseException: Der √∂ffentliche Typ mit dem Namen "RadDatePicker kann von dem Typverweis nicht gefunden werden
StackTrace
bei System.Windows.Markup.XamlReaderHelper.Read(XamlNode& xamlNode)
...
InnerException:None
"

Translation of the message: "The public type with the name "RadDatePicker" can't be found by the reference type"
When I open the project with Visual studio, the exception does not occur.

Thanks in advance for helping.

3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 29 May 2009, 04:01 PM
Hi Matthias,

 I tried this on my test PC and it is working fine. If you are not with our latest binaries you may want to download them and try the issue again. Another thing you can try is to add to the references Telerik.Windows.Data.dll because Input assembly was dependent on it in previous versions which is fixed now.
Also make sure  Telerik.Windows.Controls is always included in your references as it is used by all controls.

 I have attached a project which you can open and try if you get the same error. If the problem persist you can open a support ticket and send us a project so that we can replicate and investigate the error.

Regards,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matthias
Top achievements
Rank 1
answered on 02 Jun 2009, 02:27 PM
Thanks for your answer. Your test project works fine (no exception). The necessary .dll files have already been added to my project. I removed and added them again, but I still get the exception when I copy the style or the control template.
Do you have an assumption, what else could cause the exception?
Thanks in advance!

Update: Somehow it's working right now although I haven't done any changes. I also tried to create a new blank project, add the .dll files, create the RadDatePicker and copy its style. One time it was not working (exception), another time its working. I don't know what causes this strange behaviour. Some information about my setup: MacBook Pro 2,4 GHz Intel Core 2 Duo, 4GB Ram, Windows XP running under Parallels Desktop 4.0
0
Boyan
Telerik team
answered on 05 Jun 2009, 02:03 PM
Hello Matthias,

That's very strange and I am out of ideas. Are you using our latest binaries  -- 2009.1.526 ?  If not , can you can download them and try with them . And if the problem persists can you open a support ticket and send me a project where the error occurs. I will do my best to figure out what is the problem and provide you with a solution.

Best wishes,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
DatePicker
Asked by
Matthias
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Matthias
Top achievements
Rank 1
Share this question
or