Inject the workitem into the UI

Topics: CAB & Smart Client Software Factory
Dec 24, 2005 at 9:41 AM
originally posted by: SUBATBLOOMINGTON

Hello,

we are considering of accessing the workitems directly from workitems instead of using through controllers.

how to inject the workitem into the ui component.

any help please
Dec 24, 2005 at 8:15 PM
originally posted by: BradWilson

Use a ServiceDependency against the WorkItem type, such as:

public class MyFoo
{
InjectionConstructor
public MyFoo(ServiceDependency WorkItem workItemIAmContainedIn)
{
...
}
}