Compatibility Silverlight WPF issue

2 posts, 0 answers
  1. Laurent DANESI
    Laurent DANESI avatar
    5 posts
    Member since:
    Jan 2010

    Posted 12 Jan 2010 Link to this post

    Hi all,

    We are testing to buy the library. For this we did a nice prototype in Silverlight to test RadControl.
    Now i'm converting the silverlight prototype to WPF to see how the RadControl lib behaves since we have to choose a lib which is 100% compatible with silverlight and WPF. We don't want to wonder each time we do something in silverlight if it is potential broken on WPF.

    Currently I'm facing a problem with RadControl and the WPF version of our prototype. Visual Studio saying it can't find reference to some RadControl component.


    It logs Erreur    2    Erreur de génération inconnue, 'MC3074 : la balise 'HierarchicalDataTemplate' n'existe pas dans l'espace de noms XML 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls'. Ligne 16 Position 10.'  

    Erreur    3    Erreur de génération inconnue, 'MC3074 : la balise 'RadDockPanel' n'existe pas dans l'espace de noms XML 'clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls'. Ligne 32 Position 10.' 

    Erreur    4    Le type 'telerik:RadDockPanel' est introuvable. Assurez-vous qu'il ne manque aucune référence d'assembly et que tous les assemblys référencés ont été générés. 

    I've well added references with all Telerik's references availables.

    So my question is why it does not found this telerik components in WPF version?

    This raises 2 important questions

    1) Do all the Telerik's components available in silverlight are available in WPF ?
    2) Do all the Telerik's components have the same naming in both SDK ?

    Thank you by advance for your support.

  2. Miroslav
    Miroslav avatar
    922 posts

    Posted 12 Jan 2010 Link to this post

    Hi Laurent DANESI,

    Straight to your questions:

    Few controls are available only in Silverlight, but normally this is due to the specifics of Silverlight - the RadUpload, RadHtmlPlaceholder and the MediaPlayer are available only for Silverlight and the RadCarousel is available only for WPF (because of some WPF-specific features it uses).

    The naming of the controls is the same, as is the naming of their members.

    As you know Silverlight is a subset of WPF. We have designed the Silverlight controls to offer some of the WPF built-in functionality - this includes the HierarchicalDataTemplate, the RadDockPanel the DataTemplateSelctors, RoutedEvents and more.

    In this case we rely on WPF and do not offer a telerik HierarchicalDataTemplate for example but rely on the one already present in WPF. This approach is only taken for "building blocks" elements.

    In this case the <telerik:HierarchicalDataTemplate /> needs to be replaced with <HierarchicalDataTemplate />

    Do come back to us with more questions or suggestions,

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top