• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 29. Registries with Global Utilities > Step 2: Implementing the Utility

Step 2: Implementing the Utility

The global theme for this utility should use a simple dictionary that maps a text representation to the path of a smiley. When smileys are requested, this path should be converted to a URL and returned. The only tricky part of the utility will be to obtain the root URL because the utility does not know anything about locations.

However, there is a fast solution: You create a containment root component stub that implements the IContainmentRoot interface, and the traversal mechanism looks for that while generating a path or URL. Here is what you can do to obtain the root URL:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint