Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Build Your Own ASP.NET 2.0 Web Site Using CSharp And VB (2006) [eng]-1.pdf
Скачиваний:
142
Добавлен:
16.08.2013
Размер:
15.69 Mб
Скачать

Menu

SiteMapProvider

a string representing the name of the SiteMapProvider

 

object associated with the SiteMapPath

SkipLinkText

a string that describes a link to allow screen reader

 

users to skip the control’s content

Methods

DataBind

binds the SiteMapPath to its data source

Events

ItemCreated

fires when a new SiteMapNodeItem object is created

ItemDataBound fires after a node item has been bound to the data source

Menu

Properties

Controls

returns a ControlColection object containing the menu’s child controls

DisappearAfter

an integer representing how long, in milliseconds, a dynamic menu continues to display after the cursor ceases to hover over it; the default is 500; when DisappearAfter is set to -1, the menu won’t disappear automatically

DynamicBottomSeparatorImageUrl

a string representing the URL of an image to be displayed at the bottom of a dynamic menu item; this is usually a line that separates the dynamic item from the other items; value is empty (an empty string) by default

DynamicEnableDefaultPopOutImage

a Boolean value representing whether a dynamic menu that contains a submenu should be enhanced with the image specified by

DynamicPopOutImageUrl; default value is True

DynamicHorizontalOffset

an integer representing the number of pixels by which a dynamic menu should be shifted horizontally relative to the parent menu item

635

Appendix A: Web Control Reference

DynamicHoverStyle

a MenuItemStyle object that allows you to control the appearance of a dynamic menu item when the cursor hovers over it

DynamicItemFormatString

a string used to set the text to be displayed for dynamic menu items on mobile devices that don’t support templates

DynamicItemTemplate

the template to be used to render dynamic menu items

DynamicMenuItemStyle

the MenuItemStyle object that represents the styles used to render dynamic menu items

DynamicMenuStyle

the SubMenuStyle object that represents the styles used for rendering the dynamic menu

DynamicPopOutImageTextFormatString

a string representing the alternate text to be displayed instead of the image specified by DynamicPopOutImageUrl

DynamicPopOutImageUrl

a string representing the URL for the image to be displayed for a dynamic menu item that has a submenu when DynamicEnableDefaultPopOutImage is True

DynamicSelectedStyle

a MenuItemStyle object representing the style of a selected dynamic menu item

DynamicTopSeparatorImageUrl

a string representing the URL for an image to be displayed at the top of a dynamic menu item; this is usually a line that separates the dynamic item from the other items; the value is empty (an empty string) by default

DynamicVerticalOffset

an integer representing the number of pixels by which a dynamic menu should be shifted vertically relative to the parent menu item

636

Menu

Items

a MenuItemCollection that contains a collection of MenuItem objects, representing all the menu items

ItemWrap

a Boolean value representing whether the menu items’ text should wrap

LevelMenuItemStyles

a MenuItemStyleCollection representing a collection of MenuItemStyle objects that define the styles to be applied to menu items depending on their levels in the menu (the first object in the collection defines the style for the first menu level, the second object in the collection defines the style for the second menu level, and so on)

LevelSelectedStyles

similar to LevelMenuItemStyles, but applies to selected menu items

LevelSubMenuStyles

similar to LevelMenuItemStyles, but applies to submenu items

MaximumDynamicDisplayLevels

an integer that specifies the maximum number of dynamic menu levels to display; the default value is 3

Orientation

can be set either to Orientation.Horizontal or Orientation.Vertical, specifying the direction in which to display the menu items

PathSeparator

a Char value representing the character used to delimit the path of a menu item

ScrollDownImageUrl

a string representing the URL for an image to be displayed in a dynamic menu to indicate that the user can scroll down to see more menu items

ScrollDownText

alternate text for the image defined by ScrollDownImageUrl

ScrollUpImageUrl

a string representing the URL for an image to be displayed in a dynamic menu to indicate that the user can scroll up to see more menu items

637

Appendix A: Web Control Reference

ScrollUpText

alternate text for the image defined by ScrollUpImageUrl

SelectedItem

a MenuItem object representing the selected menu item

SelectedValue

a string representing the text of the selected menu item

SkipLinkText

a string representing alternate text to be used by screen readers to allow screen reader users to skip the list of links

StaticBottomSeparatorImageUrl

a string representing the URL for an image to be displayed at the bottom of a static menu item—usually a line that separates the static item from the other items; value is empty (an empty string), by default

StaticDisplayLevels

an integer representing the maximum number of levels to display for a static menu; default is 1

StaticEnableDefaultPopOutImage

a Boolean value representing whether a static menu that contains a submenu should be enhanced with the image specified by StaticPopOutImageUrl; default is True

StaticHoverStyle

a MenuItemStyle object that allows you to control the appearance of a static menu item when the cursor is hovered over it

StaticItemFormatString

a string used to set the text for static menu items displayed on mobile devices that don’t support templates

StaticItemTemplate

the template to be used to render static menu items

StaticMenuItemStyle

the MenuItemStyle object that represents the styles used to render static menu items

638