Bar

BarEditItemLink.UserContent2 Property

Gets or sets the link's object displayed after the edit box. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public object UserContent2 { get; set; }
Public Property UserContent2 As Object

Property Value

Type Description
Object

An object that specifies the link's object displayed after the edit box.

Remarks

You can specify the content for a BarEditItemLink via the BarItem.Content and BarEditItem.Content2 properties. By default, this data will be used by all links. However, you can provide the contents for individual links via the BarItemLinkBase.UserContent and UserContent2 properties, overriding the bar edit item's corresponding settings.

At runtime, an end-user can modify a link's caption in customization mode. See Quick Customization to learn more.

NOTE

BarItem objects can be displayed in multiple places simultaneously (for instance, in a Ribbon Page Group and Ribbon Quick Access Toolbar), while it is not possible to display the same UIElement in multiple places simultaneously. Therefore it is not possible to use UIElement objects as the content of a BarItems.

See Also