The Artima Developer Community
Sponsored Link

.NET Buzz Forum
CAB, June to October: The Big Changes to WorkItem

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brad Wilson

Posts: 462
Nickname: dotnetguy
Registered: Jul, 2003

Brad Wilson is CTO of OneVoyce, Inc.
CAB, June to October: The Big Changes to WorkItem Posted: Oct 9, 2005 9:29 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Brad Wilson.
Original Post: CAB, June to October: The Big Changes to WorkItem
Feed Title: The .NET Guy
Feed URL: /error.aspx?aspxerrorpath=/dotnetguy/Rss.aspx
Feed Description: A personal blog about technology in general, .NET in specific, and when all else fails, the real world.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Brad Wilson
Latest Posts From The .NET Guy

Advertisement

This post discusses changes to the Composite UI Application Block as of the October 2005 CTP release.

WorkItem is a core class, and underwent quite a few changes between the June CTP and the October CTP.

The most obvious change is that the collection-like behavior is not present on the WorkItem itself any more. Components (which we'd prefer to call Items now) are available in a collection class property called Items, and services are available in a collection class property called Services. This means calls like:

   myWorkItem.Add(...);

become:

   myWorkItem.Items.Add(...);

And calls like:

   myWorkItem.AddService(...);

become:

   myWorkItem.Services.Add(...);

In addition to these two core collection classes, there are a number of fascade classes that filter these collections. For example, to find just the IWorkspace classes in a WorkItem, you can use myWorkItem.Workspaces.

We also renamed "Create", because it wasn't quite clear what it did. The new name is "AddNew", which lets you know what the WorkItem is making a new one and adding it. The AddNew method is available on both Items and Services.

As before, you can inject services with the [ServiceDependency] attribute, and items with the [ComponentDependency] attribute.

We've added a new attribute called [CreateNew], which indicates that during injection, you'd always like a new one of the thing created. This attribute is a more general purpose form of (and replaces the) [Controller] attribute. This attribute helps write MVC/MVP style applications much easier by automatically allocating a controller or presenter as necessary.

Read: CAB, June to October: The Big Changes to WorkItem

Topic: LINQ Preview Previous Topic   Next Topic Topic: Setting the Record Straight on XAML

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use