How to get hold of Main Form's Service Provider in User Controls for application developed using CAB Framework RRS feed

  • Question

  • Hi,


    I am developing a POC whereby I need to display Workflow Foundation Designer Control on a Main Form. This application is developed using CAB Framework and the Designer Control is a separate User Control placed on the Main Form.


    In standard .NET development scenario, while creating the instance of UserControl I can pass the reference of

    ServiceProvider in its constructor but using CAB Framework, the actual control instance is only created through a WorkItem class. Since the WorkItem class does not inherit from IServiceProvider, I do not get to see the GetService method.


    Any help in this regard would be useful.




    Thursday, June 21, 2007 7:39 AM


  • One solution would be to make the main form's service provider available as global application data.
    Thursday, June 21, 2007 4:04 PM

All replies