locked
CustomContol class missing in library RRS feed

  • Question

  • I am building a third party library with few template Custom controls . Now when I refer those controls in app from project its works fine but when I take .dll of that library and refer, getting error  of those custom control classes missing in .dll. What wrong am i doing?
    Friday, January 3, 2014 10:43 AM

Answers

  • Got it working. Seems xaml files do not get compiled into dll and need to be distributed as resource.  I changed custom control to Template control, distributed xaml to the application and .cs file compiled into the class library dll .
    Wednesday, January 8, 2014 5:35 AM

All replies

  • Did you make the class public? You have to do this explicitly:

    public class YourCustomControl : Control
    {
         // ...
    }

    Friday, January 3, 2014 10:47 AM
  • can you show how you defined a control; and how you try to refer it?

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Friday, January 3, 2014 12:16 PM
  • Got it working. Seems xaml files do not get compiled into dll and need to be distributed as resource.  I changed custom control to Template control, distributed xaml to the application and .cs file compiled into the class library dll .
    Wednesday, January 8, 2014 5:35 AM