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

RadDockPanel not found in WPF

1 Answer 164 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Laurent DANESI
Top achievements
Rank 1
Laurent DANESI asked on 12 Jan 2010, 02:27 PM
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.

RadDockPanel
RadDockPanel.Dock
HierarchicalDataTemplate

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.

Luciano







1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 13 Jan 2010, 03:53 PM
Hi Laurent,

Thank you for your interest in RadControls.

First I will try to explain the problems:
- HierarchicalDataTemplate is a standard WPF component, hence we don't have it in our WPF offering. When Silverlight gets it in its core, we will obsolete our class - generally we don't want to provide components that mirror core functionality of the Framework, unless we can provide additional value. 

To equalize the XAML (except the namespace declarations) you could do the following:
Silverlight:
xmlns:core="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
WPF:
xmlns:core="clr-namespace:System.Windows;assembly=PresentationFramework"
and the XAML will be the same:
<core:HierarchicalDataTemplate>
...
</core:HierarchicalDataTemplate>

- In the beginning RadDockPanel was provided for internal use in RadMenu and other controls. Since it has to be public in order to be used in our own XAML, we named it with the Rad preffix, which was a mistake in my opinion. In two words, it provides the same functionality as the WPF DockPanel, but has a different name. We don't want to provide it in WPF since there is already a standard panel that does exactly the same. You could create an empty class, named DockPanel that inherits RadDockPanel and use the trick from above to make the XAML the same.

Now, up to the questions:
1) Most of the Telerik components are available in both platforms. Some exceptions are RadCoverFlow (Silverlight only) and RadCarousel (WPF only) that are not porter yet, due to features that are used in those controls, that are unavailable in the other Framework. Our general strategy is to provide all controls with the same features in both platforms.
2) The controls in the two platforms are built from the same source code, so the naming is the same. There are some differences, however - for example RadComboBox.SelectionChanged event handler is of type Telerik.Windows.Controls.SelectionChangedEventHandler in Silverlight and System.Windows.Controls.SelectionChangedEventHandler in WPF. We try to keep those difference as few as possible, but sometimes the standard Framework classes do not provide the needed functionality or cannot be inherited (usually in Silverlight), that's why sometimes we are forced to provide our own versions of standard classes.

Please, let me know if you have additional questions or problems and I will be glad to provide assistance.

Sincerely yours,
Valeri Hristov
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.
Tags
Docking
Asked by
Laurent DANESI
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or