The Command Model
In a well-designed Silverlight application, the application logic doesn't sit in the event handlers but is coded in higher-level methods. Each one of these methods represents a single application “task.” In turn, each task may rely on other libraries (such as separately compiled components that encapsulate data access, web service calls, or other types of business logic). Figure 4-9 shows this relationship.
The most obvious way to use this design is to add event handlers wherever they're needed and use each event handler to call the appropriate application method. In essence, your ...
Get Pro Silverlight 5 in VB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.