TargetType not found

Thread is closed for posting
2 posts, 1 answers
  1. David
    David avatar
    2 posts
    Member since:
    Jan 2012

    Posted 13 Jan 2012 Link to this post


    I was playing around with the BusyIndicator control and ran into this problem. I just pasted the sample code from here:
    and ran into an error. Type 'telerikPrimitivesBusyIndicator:BusyIndicatorAnimation' was not found. The error is at this line:
    <Style x:Key="DefaultIndicatorAnimation"

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

  2. Answer
    Todor avatar
    798 posts

    Posted 16 Jan 2012 Link to this post

    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:


    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,
    the Telerik team

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

Back to Top