Problem with TabControl in ElementHost in ActiveX

4 posts, 0 answers
  1. Alexander Zeitler
    Alexander Zeitler avatar
    2 posts
    Member since:
    Apr 2008

    Posted 13 Oct 2009 Link to this post

    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
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 16 Oct 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alexander Zeitler
    Alexander Zeitler avatar
    2 posts
    Member since:
    Apr 2008

    Posted 16 Oct 2009 Link to this post

    Hi,

    thanks for your reply.

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

    Alex
  5. JigneshGN
    JigneshGN avatar
    10 posts
    Member since:
    May 2009

    Posted 24 Nov 2009 Link to this post

    Thanks brother .

    it solved my another problem,

Back to Top