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

Problem with TabControl in ElementHost in ActiveX

3 Answers 82 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Alexander Zeitler
Top achievements
Rank 1
Alexander Zeitler asked on 13 Oct 2009, 12:15 PM
Hi,

I'm facing the following problem:

I've created a new WPF Control Library containing Rad TabControl which is referenced (and used in ElementHost) in a Windows Forms Controls Library which is registered as Type Library (ActiveX).

When testing the Type Library with tstcon32 I get the following exception inside the WPF Control Library:

"{"'Telerik.Windows.Controls.Navigation;Component/Themes/GenericVista.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. '/Telerik.Windows.Controls.Navigation;component/themes/vista/CarouselDataFieldPresenter.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object.  Error at object 'System.Windows.ResourceDictionary' in markup file 'Telerik.Windows.Controls.Navigation;Component/Themes/GenericVista.xaml'.  Error at object 'System.Windows.ResourceDictionary'."}"

When using the Windows Forms Controls Libary inside another WinForms application everything works fine.

Using the Telerik Calendar the way described above everything works fine.

Alex

3 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 16 Oct 2009, 01:48 PM
Hi Alexander,

This error normally appears when a reference to the Telerik.Windows.Data.dll is missing. Can you confirm that dll is loaded in this case as well?

For example you should be able to see and use the Telerik.Windows.Data.Pair<First, Second> class.

Kind regards,
Miroslav
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.
0
Alexander Zeitler
Top achievements
Rank 1
answered on 16 Oct 2009, 02:45 PM
Hi,

thanks for your reply.

Telerik.Windows.Data is a reference and Telerik.Windows.Data.Pair<First, Second> is available.

Alex
0
JigneshGN
Top achievements
Rank 2
answered on 24 Nov 2009, 01:01 PM
Thanks brother .

it solved my another problem,

Tags
TabControl
Asked by
Alexander Zeitler
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Alexander Zeitler
Top achievements
Rank 1
JigneshGN
Top achievements
Rank 2
Share this question
or