Ik ben me momenteel aan het verdiepen in het Composite UI Application Block (http://msdn.microsoft.com...us/dnpag2/html/cabctp.asp). Op zich ziet het er veelbelovend en duidelijk uit. Waar ik nog niet helemaal m'n vinger op krijg is; wanneer geef ik een class nou het [SmartPart] attribuut? Wat voegt het toe of dwingt het af als ik dit doe.
In de Hands On Labs exersises (http://www.gotdotnet.com/...95-44ce-a6ca-f2eafbf2653c bij downloads) kom ik het volgende tegen:
Place the following attribute at the top of the CustomerQueueView class.
This attribute is used to mark the Control as a SmartPart. this is required to support the inversion of control functionality, which will automatically associate service dependencies, controllers etc.
Ik snap alleen niet wat hier precies mee bedoeld wordt.
In de Hands On Labs exersises (http://www.gotdotnet.com/...95-44ce-a6ca-f2eafbf2653c bij downloads) kom ik het volgende tegen:
Place the following attribute at the top of the CustomerQueueView class.
code:
1
2
| [SmartPart] public partial class CustomerQueueView : UserControl |
This attribute is used to mark the Control as a SmartPart. this is required to support the inversion of control functionality, which will automatically associate service dependencies, controllers etc.
Ik snap alleen niet wat hier precies mee bedoeld wordt.