MenuItemBinding.PopOutImageUrlField 属性

定义

获取或设置数据源中字段的名称,该字段将绑定到 PopOutImageUrl 对象将应用到的 MenuItem 对象的 MenuItemBinding 属性。Gets or sets the name of the field from the data source to bind to the PopOutImageUrl property of a MenuItem object to which the MenuItemBinding object is applied.

public:
 property System::String ^ PopOutImageUrlField { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string PopOutImageUrlField { get; set; }
[System.ComponentModel.TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string PopOutImageUrlField { get; set; }
[<System.ComponentModel.TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]
member this.PopOutImageUrlField : string with get, set
[<System.ComponentModel.TypeConverter("System.Web.UI.Design.DataSourceViewSchemaConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]
member this.PopOutImageUrlField : string with get, set
Public Property PopOutImageUrlField As String

属性值

String

绑定到应用 PopOutImageUrl 对象的 MenuItem 对象的 MenuItemBinding 属性的数据源的字段名称。The name of the field from the data source to bind to the PopOutImageUrl property of a MenuItem object to which the MenuItemBinding object is applied. 默认值为空字符串 (""),表示尚未设置此属性。The default is an empty string (""), which indicates that this property is not set.

属性

注解

Menu 控件绑定到数据源时,请使用 PopOutImageUrlField 属性指定要绑定到对象的属性的字段名称 MenuItem.PopOutImageUrl MenuItemWhen the Menu control is bound to a data source, use the PopOutImageUrlField property to specify the name of the field to bind to the MenuItem.PopOutImageUrl property of a MenuItem object. 呈现时, PopOutImageUrl 应用对象的每个菜单项的属性 MenuItemBinding 包含字段中的相应值。When rendered, the PopOutImageUrl property of each menu item to which the MenuItemBinding object is applied contains the corresponding value from the field. 为每个菜单项显示相应 URL 中的图像。The image at the corresponding URL is displayed for each menu item.

备注

您可以通过直接设置菜单项的属性来覆盖单个菜单项的 URL PopOutImageUrlYou can override the URL for an individual menu item by setting its PopOutImageUrl property directly.

如果数据源包含多个表或属性,则必须先通过设置 Depth 属性和/或属性来建立绑定条件 DataMemberIf the data source contains multiple tables or attributes, you must first establish the binding criteria by setting the Depth property, the DataMember property, or both.

PopOutImageUrl MenuItem 您还可以通过设置属性将对象的属性绑定到静态值,而不是使用此属性将对象的属性绑定到字段 MenuItemBinding.PopOutImageUrlInstead of using this property to bind the PopOutImageUrl property of a MenuItem object to a field, you can also bind it to a static value by setting the MenuItemBinding.PopOutImageUrl property. 这允许您从应用对象的每个菜单项导航到同一 URL MenuItemBindingThis allows you to navigate to the same URL from each menu item to which the MenuItemBinding object is applied.

备注

如果 PopOutImageUrl PopOutImageUrlField 同时设置了和属性,则 PopOutImageUrlField 属性优先。If the PopOutImageUrl and PopOutImageUrlField properties are both set, the PopOutImageUrlField property takes precedence.

适用于

另请参阅