Prev | Current Page 692 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"


Attributes are generally named with the word ???Attribute??? appended at the end. However,
the word ???Attribute??? is optional when applying the attribute. In the previous example, the text
DescriptionAttribute("..") could be replaced with Description(""). Likewise, the actual
class name of the DefaultValue attribute in the .NET Framework is DefaultValueAttribute.
1. Custom properties display in
the Properties window.
2. Type Converters customize
how data displays in the
Properties window.
3. Custom property
editor form available via
Property Builder menu.
4. Customize help
information on the currently
selected property in the
Properties window
534 CHAPTER 11 ?–  DESIGN-TIME SU PPORT
The ImageInfo property on the TitledThumbnail control is of type ImageMetaData. Listing 11-4
contains the source for the ImageMetaData class.
Listing 11-4. The ImageMetaData Class
using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Globalization;
using System.Security.Permissions;
using System.Web;
using ControlsBook2Lib.Ch11.Design;
namespace ControlsBook2Lib.Ch11
{
[TypeConverter(typeof(ImageMetaDataConverter)),
AspNetHostingPermission(
SecurityAction.LinkDemand,
Level = AspNetHostingPermissionLevel.


Pages:
680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704