Prev | Current Page 687 | Next

Rob Cameron and Dale Michalk

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

"),
CategoryAttribute("Appearance")]
public string Title
{
get
{
EnsureChildControls();
object title = ViewState["title"];
return (title == null) ? "" : (string)title;
}
set
{
CHAPTER 11 ?–  DES IGN-TIME S UPPORT 529
EnsureChildControls();
lblTitle.Text = value;
ViewState["title"] = value;
}
}
[DescriptionAttribute("The Url of the image to be shown."),
CategoryAttribute("Appearance")]
public string ImageUrl
{
get
{
EnsureChildControls();
object imageUrl = ViewState["imageUrl"];
return (imageUrl == null) ? "" : (string)imageUrl;
}
set
{
EnsureChildControls();
imgThumbnail.ImageUrl = value;
ViewState["imageUrl"] = value;
}
}
[DescriptionAttribute("Set the alignment for the Image and Title."),
CategoryAttribute("Layout"), DefaultValue("center")]
public TitleAlignment Align
{
get
{
EnsureChildControls();
object align = ViewState["align"];
return (align == null) ? TitleAlignment.left : (TitleAlignment)align;
}
set
{
EnsureChildControls();
this.Attributes.Add("align", Enum.GetName(typeof(TitleAlignment), value));
ViewState["align"] = value;
}
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
NotifyParentProperty(true), CategoryAttribute("MetaData"),
DescriptionAttribute(
"Meta data that stores information
about the displayed photo image.


Pages:
675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699