Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Conflicting references
posted

Hi,

Am trying to use ElementHost to host a XamDataCarousel in a WinForms project but am getting a compile error when all the required references are added to the project, type 'Infragistics.Shared.ResourceCustomizer' exists in both InfragisticsWPF4.v12.1.dll and Infragistics4.Shared.v12.1.dll.

The first dll is required for use of XamDataCarousel, the second is required by other (non-WPF) controls that we are using.

Any suggestions on how this can be overcome?

Thanks.

Parents
No Data
Reply
  • 48586
    Verified Answer
    posted

    Hello,

     

    In order to avoid  this conflict you should use Alias. On the following link you will find a tutorial of how to use alias.

    http://blogs.msdn.com/b/ansonh/archive/2006/09/27/774692.aspx

     

    I suggest you to use alias for Infragistics4.Shared.v12.1, set Aliases property to  “ WinFormsShared”. Then the code of the form will looks like:

    extern alias WinFormsShared;

    using System;

    using System.Collections.Generic;

    ….

    ….

     

           WinFormsShared::Infragistics.Shared.ResourceCustomizer rc = Infragistics.Win.UltraWinTree.Resources.Customizer;     

           rc.SetCustomizedString("xxxxx", "New string for 'xxxxx' resource");

     

     

    Please let me know if you have any further questions.

Children