WebParts :: CustomVerbs

Just released my first prototype showing some WebPart code:

    http://projectdistributor.net/Projects/Project.aspx?projectId=65


About this demo.
This page is a canonical Intranet dashboard style page.  Web Parts can be displayed in both the left and right columns while the middle column houses the catalog zone and editor zone for managing part views.

To each zone I've applied the default, auto formatting so that they look "nice".

About the Web Parts
What I wanted to show in this demo is the usage of custom verbs and a cusom property editor for a "EmployeeWebPart".  The verbs allow you to switch views so that you can obtain different information about the employee while the custom editor allows you to upload an employee photo.

Things to notice
  • The extra verbs that are available for the Employee Details web part.
  • If you change the current "view" on the Employee Details web part and then switch into edit mode and re-enable it, the current view is persisted.  That is, if you were in "Address" view when you hid it, you will still be in "Address" view when you re-add it
  • When you are editing the "Employee Details" part, there are some custom properties that you can edit: "Name Header Title" and "Address Header Title".
  • The Change View control which talks to the WebPartManager class to change the current display mode.
Where next...
This demo doesn't include things such as:

  • complex parts which can talk via Connections.
  • parts loaded at runtime.
  • large parts - ie: near fullscreen parts.
  • discovering parts which are dumped into a folder and discovered via metadata contained within either the assembly or a manifest.
  • Still not sure how to put "spacers" into the Verbs collection.

No Comments