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

TargetType not found

1 Answer 81 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 13 Jan 2012, 09:45 AM
Hello,

I was playing around with the BusyIndicator control and ran into this problem. I just pasted the sample code from here: http://www.telerik.com/help/windows-phone/radbusyindicator-features-customanimations.html
and ran into an error. Type 'telerikPrimitivesBusyIndicator:BusyIndicatorAnimation' was not found. The error is at this line:
<Style x:Key="DefaultIndicatorAnimation"
TargetType="telerikPrimitivesBusyIndicator:BusyIndicatorAnimation">


I am a new developer so i dont understand what "TargetType" even does?

Thanks!
David

1 Answer, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 16 Jan 2012, 01:39 PM
Hi David,

Thank you for your interest in RadBusyIndicator.

The TargetType property of Style defines the type for which the style is intended. What you need to do is, to add an xmlns statement in the root tag mapping the prefix telerikPrimitivesBusyIndicator to the CLR namespace Telerik.Windows.Controls.BusyIndicator in the assembly Telerik.Windows.Controls.Primitives. It looks like this:

xmlns:telerikPrimitivesBusyIndicator="clr-namespace:Telerik.Windows.Controls.BusyIndicator;assembly=Telerik.Windows.Controls.Primitives"

You are free to choose a different prefix, just make sure it is the same as the one used for the TargetType. And then you set the style to the IndicatorAnimationStyle property of RadBusyIndicator.
I hope this information is useful. Let me know if need additional assistance.

Kind regards,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
BusyIndicator
Asked by
David
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or